diff options
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index d983934e83a5..9cbbe236a2f1 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -34,6 +34,11 @@ self: super: { ghcjs-base = null; ghcjs-prim = null; + # Some packages add this (non-existent) dependency to express that they + # cannot compile in a given configuration. Win32 does this, for example, when + # compiled on Linux. We provide the name to avoid evaluation errors. + unbuildable = throw "package depends on meta package 'unbuildable'"; + # cabal-install needs Cabal 2.x. hackage-security's test suite does not compile with # Cabal 2.x, though. See https://github.com/haskell/hackage-security/issues/188. cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_0_0_2; }); @@ -957,4 +962,11 @@ self: super: { protolude = super.protolude_0_2; }; + # This tool needs the latest hackage-db version. Using the latest version of + # optparse-applicative allows us to generate completions for fish and zsh. + cabal2nix = super.cabal2nix.overrideScope (self: super: { + hackage-db = self.hackage-db_2_0; + optparse-applicative = self.optparse-applicative_0_14_0_0; + }); + } |