mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Compare commits
1 Commits
d8ca282fc0
...
pr/root_6_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3c724ec06 |
@@ -14,6 +14,7 @@
|
||||
, gnugrep
|
||||
, gnused
|
||||
, gsl
|
||||
, gtest
|
||||
, lapack
|
||||
, libX11
|
||||
, libXpm
|
||||
@@ -23,7 +24,7 @@
|
||||
, libGL
|
||||
, libxcrypt
|
||||
, libxml2
|
||||
, llvm_9
|
||||
, llvm_13
|
||||
, lsof
|
||||
, lz4
|
||||
, xz
|
||||
@@ -55,23 +56,9 @@
|
||||
, noSplash ? false
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
_llvm_9 = llvm_9.overrideAttrs (prev: {
|
||||
patches = (prev.patches or [ ]) ++ [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/root-project/root/commit/a9c961cf4613ff1f0ea50f188e4a4b0eb749b17d.diff";
|
||||
stripLen = 3;
|
||||
hash = "sha256-LH2RipJICEDWOr7JzX5s0QiUhEwXNMFEJihYKy9qWpo=";
|
||||
})
|
||||
];
|
||||
});
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "root";
|
||||
version = "6.26.10";
|
||||
version = "6.28.02";
|
||||
|
||||
passthru = {
|
||||
tests = import ./tests { inherit callPackage; };
|
||||
@@ -79,7 +66,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://root.cern.ch/download/root_v${version}.source.tar.gz";
|
||||
hash = "sha256-jla+w5cQQBeqVPnrVU3noaE0R0/gs7sPQ6cPxPq9Yl8=";
|
||||
hash = "sha256-ZkPAdxDmiXKwAifGiyCxAW/sFvP7pfRKVx+hzlu0L6o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper cmake pkg-config git ];
|
||||
@@ -97,10 +84,11 @@ stdenv.mkDerivation rec {
|
||||
lapack
|
||||
libxcrypt
|
||||
libxml2
|
||||
_llvm_9
|
||||
#llvm_13
|
||||
lz4
|
||||
xz
|
||||
gsl
|
||||
gtest
|
||||
openblas
|
||||
openssl
|
||||
xxHash
|
||||
@@ -124,14 +112,6 @@ stdenv.mkDerivation rec {
|
||||
./sw_vers.patch
|
||||
];
|
||||
|
||||
# Fix build against vanilla LLVM 9
|
||||
postPatch = ''
|
||||
sed \
|
||||
-e '/#include "llvm.*RTDyldObjectLinkingLayer.h"/i#define private protected' \
|
||||
-e '/#include "llvm.*RTDyldObjectLinkingLayer.h"/a#undef private' \
|
||||
-i interpreter/cling/lib/Interpreter/IncrementalJIT.h
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
rm -rf builtins/*
|
||||
substituteInPlace cmake/modules/SearchInstalledSoftware.cmake \
|
||||
@@ -160,7 +140,9 @@ stdenv.mkDerivation rec {
|
||||
"-DCMAKE_INSTALL_BINDIR=bin"
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||
"-Dbuiltin_llvm=OFF"
|
||||
#"-Dbuiltin_llvm=OFF" # TODO
|
||||
"-Dbuiltin_freetype=OFF"
|
||||
"-Dbuiltin_gtest=OFF"
|
||||
"-Dbuiltin_nlohmannjson=OFF"
|
||||
"-Dbuiltin_openui5=OFF"
|
||||
"-Dalien=OFF"
|
||||
@@ -234,23 +216,20 @@ stdenv.mkDerivation rec {
|
||||
# but it also need to support Bash-less POSIX shell like dash,
|
||||
# as they are mentioned in `thisroot.sh`.
|
||||
|
||||
# `thisroot.sh` would include commands `lsof` and `procps` since ROOT 6.28.
|
||||
# See https://github.com/root-project/root/pull/10332
|
||||
|
||||
patchRcPathPosix "$out/bin/thisroot.sh" "${lib.makeBinPath [
|
||||
coreutils # dirname tail
|
||||
gnugrep # grep
|
||||
gnused # sed
|
||||
lsof # lsof # for ROOT (>=6.28)
|
||||
lsof # lsof
|
||||
man # manpath
|
||||
procps # ps # for ROOT (>=6.28)
|
||||
procps # ps
|
||||
which # which
|
||||
]}"
|
||||
patchRcPathCsh "$out/bin/thisroot.csh" "${lib.makeBinPath [
|
||||
coreutils
|
||||
gnugrep
|
||||
gnused
|
||||
lsof # lsof # for ROOT (>=6.28)
|
||||
lsof # lsof
|
||||
man
|
||||
which
|
||||
]}"
|
||||
|
||||
Reference in New Issue
Block a user