I am trying to build a small Haskell project using Haskell.nix. I need to check if it builds in a range of stackage snapshots. I am using the example code given at Haskell.nix .
I am not able to understand how to give a particular stackage snapshot packages as input here
final.haskell-nix.project' {
src = ./.;
compiler-nix-name = "ghc8104";
# This is used by `nix develop .` to open a shell for use with
# `cabal`, `hlint` and `haskell-language-server`
shell.tools = {
cabal = {};
hlint = {};
haskell-language-server = {};
};
# Non-Haskell shell tools go here
shell.buildInputs = with pkgs; [
nixpkgs-fmt
];
# This adds `js-unknown-ghcjs-cabal` to the shell.
shell.crossPlatform = p: [p.ghcjs];
};