diff options
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7fc0947 --- /dev/null +++ b/shell.nix @@ -0,0 +1,21 @@ +{ compiler ? "default" +, nixpkgs ? import <nixpkgs> {} +}: let + + inherit (nixpkgs) lib pkgs; + + haskellPackages = + if compiler == "default" then + pkgs.haskellPackages + else + pkgs.haskell.packages.${compiler}; + + drv = haskellPackages.callPackage (import ./.) {}; + +in + + lib.overrideDerivation drv.env (oldAttrs: { + buildInputs = [ + pkgs.cabal-install + ]; + }) |