From 92576b77e9e7d28dc917e0e48cd9b6f57028a2ab Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 25 Sep 2017 09:45:27 +0200 Subject: haskell: provide a meta package "unbuildable" to fix evaluation of Win32 --- pkgs/development/haskell-modules/configuration-common.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkgs/development') diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index c6faec61b541..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; }); -- cgit 1.4.1