summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorNathan van Doorn <nathan@myrtlesoftware.com>2019-02-20 14:58:28 +0000
committerPeter Simons <simons@cryp.to>2019-02-22 10:32:15 +0100
commita86ffa4988bcf8228a500f9e4493849ae90de521 (patch)
tree71088da4c4dfdee5996c489a51a6484a484939b2 /pkgs/development/haskell-modules/generic-builder.nix
parent65c085e8a9a98a7233bcff801767ec8a6fd74e33 (diff)
downloadnixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar.gz
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar.bz2
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar.lz
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar.xz
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.tar.zst
nixpkgs-a86ffa4988bcf8228a500f9e4493849ae90de521.zip
haskell-modules/generic-builder.nix: add haddockFlags option
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index 2724ff5d622..e8195668c41 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -19,6 +19,7 @@ in
 , buildTools ? [], libraryToolDepends ? [], executableToolDepends ? [], testToolDepends ? [], benchmarkToolDepends ? []
 , configureFlags ? []
 , buildFlags ? []
+, haddockFlags ? []
 , description ? ""
 , doCheck ? !isCross && stdenv.lib.versionOlder "7.4" ghc.version
 , doBenchmark ? false
@@ -372,7 +373,8 @@ stdenv.mkDerivation ({
     ${optionalString (doHaddock && isLibrary) ''
       ${setupCommand} haddock --html \
         ${optionalString doHoogle "--hoogle"} \
-        ${optionalString (isLibrary && hyperlinkSource) "--hyperlink-source"}
+        ${optionalString (isLibrary && hyperlinkSource) "--hyperlink-source"} \
+        ${stdenv.lib.concatStringsSep " " haddockFlags}
     ''}
     runHook postHaddock
   '';