about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2024-02-29 17:23:30 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2024-02-29 17:23:30 -0500
commit5c853a3e1bd5e8f163ba8763474695ed5b1d6762 (patch)
tree0d8e33d60dd42a425263d3ffd58bcbc0b25d6a92
parente4af98e12764cb1b2c2c26dcf31edf5af1552162 (diff)
root: workaround upsteam issue 14778 pr/root_workaround_14778
-rw-r--r--pkgs/applications/science/misc/root/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix
index 9548db1c7c479..58c9786b382b9 100644
--- a/pkgs/applications/science/misc/root/default.nix
+++ b/pkgs/applications/science/misc/root/default.nix
@@ -4,6 +4,7 @@
 , fetchurl
 , fetchpatch
 , makeWrapper
+, writeText
 , cmake
 , coreutils
 , git
@@ -213,6 +214,9 @@ stdenv.mkDerivation rec {
 
   # suppress warnings from compilation of the vendored clang to avoid running into log limits on the Hydra
   NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-Wno-shadow" "-Wno-maybe-uninitialized" ];
+  # workaround for
+  # https://github.com/root-project/root/issues/14778
+  NIX_LDFLAGS = lib.optionals (!stdenv.isDarwin) [ "--version-script,${writeText "version.map" "ROOT { global: *; };"}" ];
 
   postInstall = ''
     for prog in rootbrowse rootcp rooteventselector rootls rootmkdir rootmv rootprint rootrm rootslimtree; do