diff options
| author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2024-02-29 17:23:30 -0500 |
|---|---|---|
| committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2024-08-25 15:18:28 -0400 |
| commit | 4cfe15f91343cd89aa01b0c68f85987ac2a158b6 (patch) | |
| tree | f6baecbfd25d4b3a5996b877f456971028675399 | |
| parent | Merge pull request #333774 from zimeg/gensort-init (diff) | |
| download | nixpkgs-origin/pr/root_workaround_14778.tar.gz | |
root: workaround upsteam issue 14778origin/pr/root_workaround_14778
| -rw-r--r-- | pkgs/applications/science/misc/root/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix index fd998f732818..6e166744f499 100644 --- a/pkgs/applications/science/misc/root/default.nix +++ b/pkgs/applications/science/misc/root/default.nix @@ -4,6 +4,7 @@ , fetchgit , fetchurl , makeWrapper +, writeText , cmake , coreutils , git @@ -225,7 +226,11 @@ stdenv.mkDerivation rec { ''; # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer - CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-faligned-allocation"; + env.CXXFLAGS = lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") "-faligned-allocation"; + + # workaround for + # https://github.com/root-project/root/issues/14778 + env.NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}"; # To use the debug information on the fly (without installation) # add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format) |
