git.iko.soy/typeable/cabal2nix
on master help sign in
hackage2nix.hs: filter acme-everything because it generates invalid code
commit38bb5db1deec604a917d7a4db336bb7f6dc2ad22 authorPeter Simons <simons@cryp.to> dateThu 16 Apr 2015, 12:25 (12 years ago) parent0e78434
1 file changed+4−2
src/hackage2nix.hs+4−2
src/hackage2nix.hs+4−2
@@ -100,8 +100,10 @@ data Configuration = Configuration
100100main :: IO ()
101101main = do
102102 hackage <- readHashedHackage
103− nixpkgs <- readNixpkgPackageMap -- TODO: nix barfs at the generated "type" attribute for some reason.
104− runParIO (generatePackageSet defaultConfiguration (Map.delete "type" hackage) nixpkgs)
103+ nixpkgs <- readNixpkgPackageMap
104+ let fixup = Map.delete "acme-everything" -- TODO: https://github.com/NixOS/cabal2nix/issues/164
105+ . Map.delete "type" -- TODO: https://github.com/NixOS/cabal2nix/issues/163
106+ runParIO $ generatePackageSet defaultConfiguration (fixup hackage) nixpkgs
105107
106108generatePackageSet :: Configuration -> Hackage -> Nixpkgs -> ParIO ()
107109generatePackageSet config hackage nixpkgs = do