Skip to content

v5.2.0

Choose a tag to compare

@cdepillabout cdepillabout released this 28 Mar 08:40
· 14 commits to main since this release
108f6ab

This release adds an all-cabal-nixes argument to stacklock2nix. This can give an improvement on initial build time when using stacklock2nix with a shared cache.

The all-cabal-nixes argument can be used like the following:

stacklock2nix {
  stackYaml = ./stack.yaml;
  all-cabal-nixes = fetchFromGitHub {
    owner = "all-cabal-nixes";
    repo = "all-cabal-nixes";
    rev = "c37e66df270014a18ed11527db55928a4a2ae5d4";
    sha256 = "sha256-QcAhW8yFGwj7L1LWbvjdSQ2bTDeQ+1DVeC+/jS4gJA4=";
  };
}

This greatly reduces the amount of IFD needed for building packages from Hackage.

See the PR adding this feature for more information: #65

This won't affect users who don't specify the new all-cabal-nixes argument.