diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0545c15 --- /dev/null +++ b/default.nix @@ -0,0 +1,24 @@ +{ pkgs ? import (import ./nix/sources.nix).nixpkgs { } +}: +let + haskellPackages = pkgs.haskellPackages.override + { + overrides = self: super: { + sh = self.callCabal2nix "sh" ./. { }; + }; + }; +in +{ + shell = haskellPackages.shellFor { + packages = (_: [ + haskellPackages.sh + ]); + buildInputs = [ + pkgs.cabal-install + pkgs.niv + pkgs.ormolu + ]; + withHoogle = true; + withHaddock = true; + }; +} |