diff options
author | Peter Simons <simons@cryp.to> | 2015-01-19 16:24:12 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-01-19 23:15:29 +0100 |
commit | 8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1 (patch) | |
tree | 64e90bd48cf5fd59c51f3a16eef49e593431147f /pkgs/development/haskell-modules/generic-builder.nix | |
parent | 8d19893725854a4394eb679615a47ac9504a5a7c (diff) | |
download | nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar.gz nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar.bz2 nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar.lz nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar.xz nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.tar.zst nixlib-8959aade3259a3dc4d3854c5a5eb3d9c88abfbb1.zip |
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.
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r-- | pkgs/development/haskell-modules/generic-builder.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 9fe6c1a78ba7..db14869ad49e 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -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; } |