git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #20264: root: fix environment setup
commit4c196511081948f3be4433cfc55e500cf08f8b8b authorVladimír Čunát <vcunat@gmail.com> dateMon 14 Nov 2016, 22:11 (10 years ago) parent770e83e9434ec5
3 files changed+19−1
pkgs/applications/science/misc/root/default.nix+3 pkgs/applications/science/misc/root/setup-hook.sh+1−1 pkgs/applications/science/misc/root/thisroot.patch+15
pkgs/applications/science/misc/root/default.nix+3
@@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
2121 sha256 = "186i7ni75yvjydy6lpmaplqxfb5z2019bgpbhff1n6zn2qlrff2r";
2222 })
2323 ./sw_vers.patch
24+
25+ # this prevents thisroot.sh from setting $p, which interferes with stdenv setup
26+ ./thisroot.patch
2427 ];
2528
2629 preConfigure = ''
pkgs/applications/science/misc/root/setup-hook.sh+1−1
@@ -6,4 +6,4 @@ thisroot () {
66 source @out@/bin/thisroot.sh
77}
88
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" \