git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #20264: root: fix environment setup
4c19651Vladimír Čunát
pkgs/applications/science/misc/root/default.nix+3
@@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
21 sha256 = "186i7ni75yvjydy6lpmaplqxfb5z2019bgpbhff1n6zn2qlrff2r";
21 sha256 = "186i7ni75yvjydy6lpmaplqxfb5z2019bgpbhff1n6zn2qlrff2r";
22 })
22 })
23 ./sw_vers.patch
23 ./sw_vers.patch
24+
25+ # this prevents thisroot.sh from setting $p, which interferes with stdenv setup
26+ ./thisroot.patch
24 ];
27 ];
25
28
26 preConfigure = ''
29 preConfigure = ''
pkgs/applications/science/misc/root/setup-hook.sh+1−1
@@ -6,4 +6,4 @@ thisroot () {
6 source @out@/bin/thisroot.sh
6 source @out@/bin/thisroot.sh
7}
7}
8
8
9−envHooks+=(thisroot)
9+postHooks+=(thisroot)
pkgs/applications/science/misc/root/thisroot.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/config/thisroot.sh b/config/thisroot.sh
2+index 85dee20..532cb28 100644
3+--- a/config/thisroot.sh
4++++ b/config/thisroot.sh
5+@@ -15,8 +15,8 @@ drop_from_path()
6+ return 1
7+ fi
8+
9+- p=$1
10+- drop=$2
11++ local p=$1
12++ local drop=$2
13+
14+ newpath=`echo $p | sed -e "s;:${drop}:;:;g" \
15+ -e "s;:${drop};;g" \