Fixes to builderDefs related to PATH_DELIMITER..
svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10841
This commit is contained in:
parent
0ca9f88ebc
commit
34d02fef81
@ -13,7 +13,9 @@ args : with args;
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "intltool-0.36.2";
|
name = "intltool-0.36.2";
|
||||||
builder = writeScript (name + "-builder")
|
builder = writeScript (name + "-builder")
|
||||||
(textClosure localDefs [doConfigure doMakeInstall doPropagate doForceShare]);
|
(textClosure localDefs [minInit addInputs doUnpack
|
||||||
|
(doDump "1") doConfigure doMakeInstall
|
||||||
|
doPropagate doForceShare]);
|
||||||
inherit propagatedBuildInputs;
|
inherit propagatedBuildInputs;
|
||||||
meta = {
|
meta = {
|
||||||
description = "
|
description = "
|
||||||
|
@ -75,11 +75,7 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
set -e
|
set -e
|
||||||
NIX_GCC=${stdenv.gcc}
|
NIX_GCC=${stdenv.gcc}
|
||||||
export SHELL=${stdenv.shell}
|
export SHELL=${stdenv.shell}
|
||||||
# Set up the initial path.
|
PATH_DELIMITER=':'
|
||||||
PATH=
|
|
||||||
for i in \$NIX_GCC ${toString stdenv.initialPath}; do
|
|
||||||
PATH=\$PATH\${PATH:+:}\$i/bin
|
|
||||||
done
|
|
||||||
" + (if ((stdenv ? preHook) && (stdenv.preHook != null) &&
|
" + (if ((stdenv ? preHook) && (stdenv.preHook != null) &&
|
||||||
((toString stdenv.preHook) != "")) then
|
((toString stdenv.preHook) != "")) then
|
||||||
"
|
"
|
||||||
@ -89,6 +85,13 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
param4=${stdenv.param4}
|
param4=${stdenv.param4}
|
||||||
param5=${stdenv.param5}
|
param5=${stdenv.param5}
|
||||||
source ${stdenv.preHook}
|
source ${stdenv.preHook}
|
||||||
|
" +
|
||||||
|
"
|
||||||
|
# Set up the initial path.
|
||||||
|
PATH=
|
||||||
|
for i in \$NIX_GCC ${toString stdenv.initialPath}; do
|
||||||
|
PATH=\$PATH\${PATH:+\"\${PATH_DELIMITER}\"}\$i/bin
|
||||||
|
done
|
||||||
|
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
|
||||||
@ -137,12 +140,12 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
" else "")
|
" else "")
|
||||||
+(if addSbinPath then "
|
+(if addSbinPath then "
|
||||||
if test -d \$1/sbin; then
|
if test -d \$1/sbin; then
|
||||||
export _PATH=\$_PATH\${_PATH:+:}\$1/sbin
|
export _PATH=\$_PATH\${_PATH:+\"\${PATH_DELIMITER}\"}\$1/sbin
|
||||||
fi
|
fi
|
||||||
" else "")
|
" else "")
|
||||||
+"
|
+"
|
||||||
if test -d \$1/bin; then
|
if test -d \$1/bin; then
|
||||||
export _PATH=\$_PATH\${_PATH:+:}\$1/bin
|
export _PATH=\$_PATH\${_PATH:+\"\${PATH_DELIMITER}\"}\$1/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in \"\${envHooks[@]}\"; do
|
for i in \"\${envHooks[@]}\"; do
|
||||||
@ -160,7 +163,7 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
export NIX_LDFLAGS=\"-rpath \$out/lib \$NIX_LDFLAGS\"
|
export NIX_LDFLAGS=\"-rpath \$out/lib \$NIX_LDFLAGS\"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH=\$_PATH\${_PATH:+:}\$PATH
|
PATH=\$_PATH\${_PATH:+\"\${PATH_DELIMITER}\"}\$PATH
|
||||||
") ["minInit"];
|
") ["minInit"];
|
||||||
|
|
||||||
defEnsureDir = FullDepEntry ("
|
defEnsureDir = FullDepEntry ("
|
||||||
@ -339,7 +342,7 @@ args: with args; with stringsWithDeps; with lib;
|
|||||||
"\n cat >> $out/nix-support/setup-hook << EOF" +
|
"\n cat >> $out/nix-support/setup-hook << EOF" +
|
||||||
"\n " +
|
"\n " +
|
||||||
"\n echo \$GHC_PACKAGE_PATH | grep -l $pkgdb &> /dev/null || \" "+
|
"\n echo \$GHC_PACKAGE_PATH | grep -l $pkgdb &> /dev/null || \" "+
|
||||||
"\n export GHC_PACKAGE_PATH=\$GHC_PACKAGE_PATH\${GHC_PACKAGE_PATH:+$PATH_DELIMITER}$pkgdb;" +
|
"\n export GHC_PACKAGE_PATH=\$GHC_PACKAGE_PATH\${GHC_PACKAGE_PATH:+\"\${PATH_DELIMITER}\"}$pkgdb;" +
|
||||||
"\nEOF" +
|
"\nEOF" +
|
||||||
"\n}");
|
"\n}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user