diff options
| l---------[-rw-r--r--] | client/shell.nix | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/client/shell.nix b/client/shell.nix index 1e9307e..314b0bf 100644..120000 --- a/client/shell.nix +++ b/client/shell.nix | |||
| @@ -1,20 +1 @@ | |||
| 1 | { pkgs ? (import <nixpkgs> {}) | ../shell.nix \ No newline at end of file | |
| 2 | , compilerName ? "ghc7102" | ||
| 3 | }: | ||
| 4 | |||
| 5 | let | ||
| 6 | packages = ps: with ps; [ | ||
| 7 | cabal-install hlint cabal2nix | ||
| 8 | hspec QuickCheck quickcheck-instances | ||
| 9 | hspec-contrib temporary | ||
| 10 | ] ++ (builtins.attrValues (import ./default.nix { inherit pkgs; })); | ||
| 11 | ghc = pkgs.haskell.packages.${compilerName}.ghcWithPackages packages; | ||
| 12 | in | ||
| 13 | pkgs.stdenv.mkDerivation rec { | ||
| 14 | name = "thermoprint-env"; | ||
| 15 | buildInputs = [ ghc ]; | ||
| 16 | shellHook = '' | ||
| 17 | eval $(egrep ^export ${ghc}/bin/ghc) | ||
| 18 | export PROMPT_INFO="${name}" | ||
| 19 | ''; | ||
| 20 | } | ||
