From 680e02eb3a6ae88adced9103dee2171b492eaaa4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 1 Mar 2016 05:14:00 +0100 Subject: shell.nix --- shell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..50b8196 --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +{ pkgs ? (import {}) +, haskellPackages ? pkgs.haskellPackages +}: + +let + ghc = haskellPackages.ghcWithPackages (ps: with ps; [ mtl ]); +in +pkgs.stdenv.mkDerivation rec { + name = "gausshs-env"; + buildInputs = [ ghc ]; + shellHook = '' + eval $(egrep ^export ${ghc}/bin/ghc) + export PROMPT_INFO="${name}" + ''; +} -- cgit v1.2.3