nixpkgs-suyu/pkgs/build-support/substitute/substitute-all.sh
Eelco Dolstra 7558076e10 * Allow post/pre-install hooks.
svn path=/nixpkgs/trunk/; revision=10629
2008-02-12 08:42:33 +00:00

19 lines
246 B
Bash

source $stdenv/setup
eval "$preInstall"
args=
target=$out
if test -n "$dir"; then
target=$out/$dir/$name
ensureDir $out/$dir
fi
substituteAll $src $target
if test -n "$isExecutable"; then
chmod +x $target
fi
eval "$postInstall"