root5: fix for gcc10

This commit is contained in:
Dmitry Kalinkin 2021-09-01 07:14:56 -04:00
parent 5da845a7e0
commit 0a312a356c
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 12 additions and 1 deletions

View File

@ -47,6 +47,17 @@ stdenv.mkDerivation rec {
# disable dictionary generation for stuff that includes libc headers
# our glibc requires a modern compiler
./disable_libc_dicts_root5.patch
(fetchpatch {
name = "root5-gcc9-fix.patch";
url = "https://github.com/root-project/root/commit/348f30a6a3b5905ef734a7bd318bc0ee8bca6dc9.diff";
sha256 = "0dvrsrkpacyn5z87374swpy7aciv9a8s6m61b4iqd7a956r67rn3";
})
(fetchpatch {
name = "root5-gcc10-fix.patch";
url = "https://github.com/root-project/root/commit/3c243b18768d3c3501faf3ca4e4acfc071021350.diff";
sha256 = "1hjmgnp4zx6im8ps78673x0rrhmfyy1nffhgxjlfl1r2z8cq210z";
})
];
preConfigure = ''

View File

@ -31189,7 +31189,7 @@ with pkgs;
root5 = lowPrio (callPackage ../applications/science/misc/root/5.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else gcc8Stdenv;
stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
});
rink = callPackage ../applications/science/misc/rink {