servant/nix
2021-04-10 11:30:37 +02:00
..
nixpkgs.json Build servant repo with nix. (#1288) 2020-06-06 00:04:32 -04:00
README.md pinning nixpkgs and adding missing dependencies 2021-04-10 11:30:37 +02:00
shell.nix pinning nixpkgs and adding missing dependencies 2021-04-10 11:30:37 +02:00

You can use the shell.nix from this directory to build the servant packages or even the tutorial or cookbook if you want to, optionally.

Just the servant packages:

$ nix-shell nix/shell.nix

Everything needed for the tutorial and the cookbook too:

$ nix-shell nix/shell.nix --arg tutorial true

The shell.nix file also supports specifying a particular ghc version, e.g:

$ nix-shell nix/shell.nix --argstr compiler ghcHEAD

Possible GHC versions

  • ghc822Binary
  • ghc865
  • ghc884
  • ghc8102 - default