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:
parent
8d19893725
commit
8959aade32
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue