about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorJonas Rembser <jonas.rembser@cern.ch>2024-05-02 10:44:47 +0200
committerJonas Rembser <jonas.rembser@cern.ch>2024-05-02 12:28:18 +0200
commit50a020aa5637929897d12409b284e30d3e1f2244 (patch)
tree750fb09a6a935b46f4d5df127fd38c45d32190cc /pkgs/applications/science
parent2e9d7dca27336d8b75baa53c782e9ba94f8da2ab (diff)
root: add back explicit disabling of compiler warnings for clang
This reverts commit 6665f67b4eef1f0e6ed467c80e86ed10c3553594.

I misunderstood something when preparing that commit: I thought it was
about compailer warnings when compiling ROOT with clang, but actually it
was to avoid warning *when compiling clang*. This is still necessary.
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/misc/root/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix
index 59bb9415b37d9..6d6108a4360b2 100644
--- a/pkgs/applications/science/misc/root/default.nix
+++ b/pkgs/applications/science/misc/root/default.nix
@@ -195,6 +195,9 @@ stdenv.mkDerivation rec {
     "-Druntime_cxxmodules=OFF"
   ];
 
+  # 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" ];
+
   postInstall = ''
     for prog in rootbrowse rootcp rooteventselector rootls rootmkdir rootmv rootprint rootrm rootslimtree; do
       wrapProgram "$out/bin/$prog" \