diff options
Diffstat (limited to 'client/shell.nix')
-rw-r--r-- | client/shell.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/shell.nix b/client/shell.nix new file mode 100644 index 0000000..1e9307e --- /dev/null +++ b/client/shell.nix | |||
@@ -0,0 +1,20 @@ | |||
1 | { pkgs ? (import <nixpkgs> {}) | ||
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 | } | ||