diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-03-01 05:14:00 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-03-01 05:14:00 +0100 |
commit | 680e02eb3a6ae88adced9103dee2171b492eaaa4 (patch) | |
tree | 2c36800ee80e51b61166f7fb4a574279007c43ce /shell.nix | |
parent | 6efbce9f8fc3e4934b6410b9b33c8ee151833d17 (diff) | |
download | gausshs-680e02eb3a6ae88adced9103dee2171b492eaaa4.tar gausshs-680e02eb3a6ae88adced9103dee2171b492eaaa4.tar.gz gausshs-680e02eb3a6ae88adced9103dee2171b492eaaa4.tar.bz2 gausshs-680e02eb3a6ae88adced9103dee2171b492eaaa4.tar.xz gausshs-680e02eb3a6ae88adced9103dee2171b492eaaa4.zip |
shell.nix
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..50b8196 --- /dev/null +++ b/shell.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | { pkgs ? (import <nixpkgs> {}) | ||
2 | , haskellPackages ? pkgs.haskellPackages | ||
3 | }: | ||
4 | |||
5 | let | ||
6 | ghc = haskellPackages.ghcWithPackages (ps: with ps; [ mtl ]); | ||
7 | in | ||
8 | pkgs.stdenv.mkDerivation rec { | ||
9 | name = "gausshs-env"; | ||
10 | buildInputs = [ ghc ]; | ||
11 | shellHook = '' | ||
12 | eval $(egrep ^export ${ghc}/bin/ghc) | ||
13 | export PROMPT_INFO="${name}" | ||
14 | ''; | ||
15 | } | ||