Skip to content

Commit 804298e

Browse files
hackage2nix: do not generate an expression for acme-everything
The package expression for acme-everything is huge since it has to list all packages released to Hackage as of 2018 twice. As this package isn't actually useful and probably doesn't even have a valid install plan, we can remove it to keep the size of hackage-packages.nix in check. In the future, such exclusions should be decided by configurable exclusions as proposed in #667. It may be a prudent idea to use the spam and acme categories of Hackage as a baseline for package exclusions. This partially reverts commit d105bfc.
1 parent d105bfc commit 804298e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cabal2nix/hackage2nix/Main.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ main = do
8181
config <- sconcat <$> mapM (\file -> readConfiguration (nixpkgsRepository </> file)) configFiles
8282
nixpkgs <- readNixpkgPackageMap nixpkgsRepository (Just "{ config = { allowAliases = false; }; }")
8383
preferredVersions <- readPreferredVersions (fromMaybe (hackageRepository </> "preferred-versions") preferredVersionsFile)
84-
let fixup = over (at "hermes") (fmap (set (contains "1.3.4.3") False)) -- TODO: https://github.com/haskell/hackage-server/issues/436
84+
let fixup = Map.delete "acme-everything" -- TODO(@wolfgangwalther): remove after https://github.com/NixOS/cabal2nix/pull/667
85+
. over (at "hermes") (fmap (set (contains "1.3.4.3") False)) -- TODO: https://github.com/haskell/hackage-server/issues/436
8586
hackage <- fixup <$> readHackage hackageRepository
8687
let
8788
hackagePackagesFile :: FilePath

0 commit comments

Comments
 (0)