diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2022-03-01 23:42:45 +0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-03-17 19:43:04 +0100 |
commit | 654940f36b5dfa19d87098efca6c4dac44a84eda (patch) | |
tree | d4ef243df2320ea251a2e3fe5b966be8a09ffc5a /pkgs/development/compilers/ghc/9.0.2.nix | |
parent | 4884fcc0d2b7581ef670a3cbd71363023a3ee6eb (diff) | |
download | nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar.gz nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar.bz2 nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar.lz nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar.xz nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.tar.zst nixpkgs-654940f36b5dfa19d87098efca6c4dac44a84eda.zip |
haskellPackages.mkDerivation: check haddock availability
This change makes the haskell builder run the haddockPhase only if the haddock program is availble (for example, it's not when cross-compiling).
Diffstat (limited to 'pkgs/development/compilers/ghc/9.0.2.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/9.0.2.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/9.0.2.nix b/pkgs/development/compilers/ghc/9.0.2.nix index f7624741b68..04e29ed6686 100644 --- a/pkgs/development/compilers/ghc/9.0.2.nix +++ b/pkgs/development/compilers/ghc/9.0.2.nix @@ -331,6 +331,10 @@ stdenv.mkDerivation (rec { inherit llvmPackages; inherit enableShared; + # This is used by the haskell builder to query + # the presence of the haddock program. + hasHaddock = enableHaddockProgram; + # Our Cabal compiler name haskellCompilerName = "ghc-${version}"; }; |