From fe7c68777ede714c93dabbad27ddf620910081a3 Mon Sep 17 00:00:00 2001 From: Martin Fredin Date: Tue, 17 Jan 2023 15:32:30 +0100 Subject: [PATCH] Add shell.nix --- shell.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..cc84b62 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +let + pkgs = import { }; # 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 ]) + ); +} +