summary refs log tree commit diff
path: root/pkgs/build-support/substitute
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-12 08:42:33 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-12 08:42:33 +0000
commit7558076e10aa924cca02cb01fa57a6773d762ca0 (patch)
treeee358f1962b3cda7a7d9f331f572eec47abb47ec /pkgs/build-support/substitute
parent8eb419d667b6f123c1404b142b0b454c35413239 (diff)
downloadnixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar.gz
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar.bz2
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar.lz
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar.xz
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.tar.zst
nixpkgs-7558076e10aa924cca02cb01fa57a6773d762ca0.zip
* Allow post/pre-install hooks.
svn path=/nixpkgs/trunk/; revision=10629
Diffstat (limited to 'pkgs/build-support/substitute')
-rw-r--r--pkgs/build-support/substitute/substitute-all.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/substitute/substitute-all.sh b/pkgs/build-support/substitute/substitute-all.sh
index 3d3999ad520..796a1a47152 100644
--- a/pkgs/build-support/substitute/substitute-all.sh
+++ b/pkgs/build-support/substitute/substitute-all.sh
@@ -1,5 +1,7 @@
 source $stdenv/setup
 
+eval "$preInstall"
+
 args=
 
 target=$out
@@ -13,3 +15,5 @@ substituteAll $src $target
 if test -n "$isExecutable"; then
     chmod +x $target
 fi
+
+eval "$postInstall"