git.iko.soy/typeable/nixpkgs
on master help sign in
haskell: provide a meta package "unbuildable" to fix evaluation of Win32
commit92576b77e9e7d28dc917e0e48cd9b6f57028a2ab authorPeter Simons <simons@cryp.to> dateMon 25 Sep 2017, 09:45 (9 years ago) parent69c4f03
1 file changed+5
pkgs/development/haskell-modules/configuration-common.nix+5
pkgs/development/haskell-modules/configuration-common.nix+5
@@ -34,6 +34,11 @@ self: super: {
3434 ghcjs-base = null;
3535 ghcjs-prim = null;
3636
37+ # Some packages add this (non-existent) dependency to express that they
38+ # cannot compile in a given configuration. Win32 does this, for example, when
39+ # compiled on Linux. We provide the name to avoid evaluation errors.
40+ unbuildable = throw "package depends on meta package 'unbuildable'";
41+
3742 # cabal-install needs Cabal 2.x. hackage-security's test suite does not compile with
3843 # Cabal 2.x, though. See https://github.com/haskell/hackage-security/issues/188.
3944 cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_2_0_0_2; });