summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorCray Elliott <MP2E@archlinux.us>2015-04-05 00:48:12 -0700
committerCray Elliott <MP2E@archlinux.us>2015-04-05 00:48:12 -0700
commiteb7362a36cf2be72ddcc9845249641d021424a93 (patch)
treea59fa5c64fa403db0b8a2f212cc74933cf188db1 /pkgs/development/haskell-modules/generic-builder.nix
parentfd85ddcd500e475c946684a2b13e2a84429fe9cf (diff)
downloadnixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar.gz
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar.bz2
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar.lz
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar.xz
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.tar.zst
nixpkgs-eb7362a36cf2be72ddcc9845249641d021424a93.zip
add patchFlags to haskell-ng's generic-builder
I use this to get yesod-bin working with ghc 7.10.1
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index baefedf5a74..9819dba5398 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -35,7 +35,7 @@
 , testTarget ? ""
 , broken ? false
 , preUnpack ? "", postUnpack ? ""
-, patches ? [], patchPhase ? "", prePatch ? "", postPatch ? ""
+, patches ? [], patchPhase ? "", prePatch ? "", postPatch ? "", patchFlags ? ""
 , preConfigure ? "", postConfigure ? ""
 , preBuild ? "", postBuild ? ""
 , preInstall ? "", postInstall ? ""
@@ -285,6 +285,7 @@ stdenv.mkDerivation ({
 // optionalAttrs (patches != [])        { inherit patches; }
 // optionalAttrs (patchPhase != "")     { inherit patchPhase; }
 // optionalAttrs (postPatch != "")      { inherit postPatch; }
+// optionalAttrs (patchFlags != "")     { inherit patchFlags; }
 // optionalAttrs (preConfigure != "")   { inherit preConfigure; }
 // optionalAttrs (postConfigure != "")  { inherit postConfigure; }
 // optionalAttrs (preBuild != "")       { inherit preBuild; }