1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

haskell-generic-builder: allow setting preUnpack and postUnpack hooks

This is useful for Hydra builds that have more than one package in the
same repository and need to change to the proper directory.
This commit is contained in:
Peter Simons 2015-01-19 16:24:12 +01:00
parent 8d19893725
commit 8959aade32

View file

@ -34,6 +34,7 @@
, testDepends ? []
, testTarget ? ""
, broken ? false
, preUnpack ? "", postUnpack ? ""
, patches ? [], patchPhase ? "", prePatch ? "", postPatch ? ""
, preConfigure ? "", postConfigure ? ""
, preBuild ? "", postBuild ? ""
@ -275,6 +276,8 @@ stdenv.mkDerivation ({
;
}
// optionalAttrs (preUnpack != "") { inherit preUnpack; }
// optionalAttrs (postUnpack != "") { inherit postUnpack; }
// optionalAttrs (configureFlags != []) { inherit configureFlags; }
// optionalAttrs (patches != []) { inherit patches; }
// optionalAttrs (patchPhase != "") { inherit patchPhase; }