diff options
| -rw-r--r-- | shell.nix | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 48d4bf4..0000000 --- a/shell.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ 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 ./package.nix) {}; - -in - - lib.overrideDerivation drv.env (oldAttrs: { - buildInputs = [ - pkgs.cabal-install - ]; - shellHook = '' - CABAL_BUILD_DIR=$HOME/tmp/cache/${drv.pname} - cabal() { - command=$1; shift - ${pkgs.cabal-install}/bin/cabal \ - "$command" \ - --builddir="$CABAL_BUILD_DIR" \ - "$@" - } - ''; - }) |
