Add shell.nix

This commit is contained in:
Martin Fredin 2023-01-17 15:32:30 +01:00
parent 42768d5aa0
commit fe7c68777e

14
shell.nix Normal file
View file

@ -0,0 +1,14 @@
let
pkgs = import <nixpkgs> { }; # pin the channel to ensure reproducibility!
in
pkgs.haskellPackages.developPackage {
root = ./.;
withHoogle = true;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (
(with pkgs; [ hlint haskell-language-server ghc ])
++
(with pkgs.haskellPackages; [ cabal-install stylish-haskell ])
);
}