@@ -1,3 +1,4 @@
1{ cabalexpr, pkgs, compiler ? "Ghc", version, os ? "Osx", arch ? "X86_64" }:
2{ cabalexpr, pkgs, compiler ? "Ghc", version, os ? "Osx", arch ? "X86_64" }:
2assert (builtins.elem compiler ["Ghc" "Ghcjs" "Nhc" "Yhc" "Hugs" "Hbc" "Helium" "Jhc" "Lhc" "Uhc" "Eta"]);
3assert (builtins.elem compiler ["Ghc" "Ghcjs" "Nhc" "Yhc" "Hugs" "Hbc" "Helium" "Jhc" "Lhc" "Uhc" "Eta"]);
3assert (builtins.elem os ["Linux" "Windows" "Osx" "FreeBSD" "OpenBSD" "NetBSD" "DragonFly" "Solaris" "AIX" "HPUX" "IRIX" "HaLVM" "Hurd" "IOS" "Android" "Ghcjs"]);
4assert (builtins.elem os ["Linux" "Windows" "Osx" "FreeBSD" "OpenBSD" "NetBSD" "DragonFly" "Solaris" "AIX" "HPUX" "IRIX" "HaLVM" "Hurd" "IOS" "Android" "Ghcjs"]);
@@ -50,7 +51,7 @@ let expr = expr0 flags;
50in mkDerivation ({
51in mkDerivation ({
51 inherit pname;
52 inherit pname;
52 version = pversion;
53 version = pversion;
53− sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;
54+ sha256 = hackage.hashes.${pname}.${pversion} or null;
55 isLibrary = builtins.hasAttr pname expr.components;
56 isLibrary = builtins.hasAttr pname expr.components;
56 isExecutable = builtins.hasAttr "exes" expr.components;
57 isExecutable = builtins.hasAttr "exes" expr.components;