Skip to content

Update haskell.nix version used in CI and deployment.

Administrator requested to merge github/fork/tp-la/update-haskell.nix into main

Created by: tomprince

  • Update haskell.nix to a recent version (including hackage.nix and stackage.nix pins therein).
    • When setting up a dev environment for [PrivateStorageio](https://whetstone.privatestorage.io/privatestorage/PrivateStorageio), downloading and extracting hackage.nix took 1+h, and wasn't cached[1]. The newer version of haskell.nix pins the versions in a way that is cached.
  • Add binary caches from privatestorage and haskell.nix.
    • This should make build time in the CI of the project shorter.
  • Use a more recent nixpkgs (in particular, I picked the same version as is currently pinned in PrivateStorageio
    • This should not make a difference in practice, as the build uses a pinned version of nixpkgs from haskell.nix.
  • Update the stackage version and haskell.nix nixpkgs version to a haskell.nix supported[2] (but not tested) configuration.
    • This was the minimal update to get to a supported configuration, it would probably make sense to update even further, but that required code changes.
  • Reduce the instance size used in CI, since the build is now <15m, when rebuilding all dependencies.

[1] Specifically, it used the equivalent of fetchTarball which forces a redownload/build after tarball-ttl or if ~/.cache is reset.

Merge request reports