From 0775dea2bc79cb1b5ee56f74f8076fc30a394127 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 8 Oct 2020 10:53:41 +0530 Subject: init --- shell.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..b1a597f --- /dev/null +++ b/shell.nix @@ -0,0 +1,40 @@ +let + + all-hies = fetchTarball { + url = "https://github.com/infinisil/all-hies/tarball/534ac517b386821b787d1edbd855b9966d0c0775"; + sha256 = "0bw1llpwxbh1dnrnbxkj2l0j58s523hjivszf827c3az5i4py1i2"; + }; + + pkgs = import { + # Pass no config for purity + config = {}; + overlays = [ + (import all-hies {}).overlay + ]; + }; + + inherit (pkgs) haskellPackages; + + haskellDeps = ps: with ps; [ + base + lens + parsec + mtl + readline + ]; + + ghc = haskellPackages.ghcWithPackages haskellDeps; + + externalPackages = [ + ghc + pkgs.gdb + pkgs.cabal2nix + haskellPackages.cabal-install + haskellPackages.hie + haskellPackages.hoogle + ]; +in +pkgs.stdenv.mkDerivation { + name = "env"; + buildInputs = externalPackages; +} -- cgit v1.2.3