* Use $propagatedBuildInputs to find build inputs.

* Bug fix in setup.sh.

svn path=/nixpkgs/trunk/; revision=861
This commit is contained in:
Eelco Dolstra
2004-03-27 22:09:34 +00:00
parent bd56b7d65c
commit f45695f7fa
7 changed files with 22 additions and 35 deletions

View File

@@ -64,7 +64,7 @@ pkgs=""
if test -n "$buildinputs"; then
buildInputs="$buildinputs" # compatibility
fi
for i in $buildInputs; do
for i in $buildInputs $propagatedBuildInputs; do
findInputs $i
done
@@ -360,8 +360,10 @@ buildW() {
return
fi
echo "make flags: $makeFlags"
make $makeFlags
if test -z "$dontMake"; then
echo "make flags: $makeFlags"
make $makeFlags
fi
}
@@ -381,16 +383,21 @@ installW() {
if test -n "$preInstall"; then
$preInstall
fi
if ! test -x "$out"; then mkdir "$out"; fi
make install $installFlags
if test -z "$dontMakeInstall"; then
echo "install flags: $installFlags"
make install $installFlags
fi
if test -z "$dontStrip" -a "$NIX_STRIP_DEBUG" = 1; then
find $out -name "*.a" -exec echo stripping {} \; -exec strip -S {} \;
find "$out" -name "*.a" -exec echo stripping {} \; -exec strip -S {} \;
fi
if test -n "$propagatedBuildInputs"; then
mkdir -f $out/nix-support
echo "$propagatedBuildInputs" > $out/nix-support/propagated-build-inputs
if ! test -x "$out/nix-support"; then mkdir "$out/nix-support"; fi
echo "$propagatedBuildInputs" > "$out/nix-support/propagated-build-inputs"
fi
if test -n "$postInstall"; then