From cf7377886a55e36701bd0d5ce7c723aa6d7bd9bd Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 8 May 2024 21:56:19 +0200 Subject: initial commit --- shell.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') 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 {} +}: 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 + ]; + }) -- cgit v1.2.3