diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-02-20 15:40:11 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-02-20 15:40:11 +0000 |
commit | 2d89fb4fee9e41c2aa6b8871db59f3cda60254c5 (patch) | |
tree | 27479b0a647b55001e5108fc74cee91f534b7502 /pkgs/build-support/buildenv/default.nix | |
parent | eb28d380c3160392c81a88937195eb72186d7c08 (diff) | |
download | nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar.gz nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar.bz2 nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar.lz nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar.xz nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.tar.zst nixlib-2d89fb4fee9e41c2aa6b8871db59f3cda60254c5.zip |
* Support a post-install hook.
svn path=/nixpkgs/trunk/; revision=14142
Diffstat (limited to 'pkgs/build-support/buildenv/default.nix')
-rw-r--r-- | pkgs/build-support/buildenv/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 95f5f2304c01..abe2f37ec660 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -20,11 +20,13 @@ # symlink (e.g., ["/bin"]). Any file not inside any of the # directories in the list is not symlinked. pathsToLink ? ["/"] + +, # Shell command to run after building the symlink tree. + postBuild ? "" }: stdenv.mkDerivation { - inherit name manifest paths ignoreCollisions pathsToLink; - realBuilder = perl + "/bin/perl"; + inherit name manifest paths ignoreCollisions pathsToLink postBuild; + realBuilder = "${perl}/bin/perl"; args = ["-w" ./builder.pl]; } - |