From 072d7ad172d114121ae0d50f8c7841ace9699965 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 17 Feb 2016 23:46:48 +0000 Subject: Started work on client library --- client/shell.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/shell.nix (limited to 'client/shell.nix') 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 @@ +{ pkgs ? (import {}) +, compilerName ? "ghc7102" +}: + +let + packages = ps: with ps; [ + cabal-install hlint cabal2nix + hspec QuickCheck quickcheck-instances + hspec-contrib temporary + ] ++ (builtins.attrValues (import ./default.nix { inherit pkgs; })); + ghc = pkgs.haskell.packages.${compilerName}.ghcWithPackages packages; +in +pkgs.stdenv.mkDerivation rec { + name = "thermoprint-env"; + buildInputs = [ ghc ]; + shellHook = '' + eval $(egrep ^export ${ghc}/bin/ghc) + export PROMPT_INFO="${name}" + ''; +} -- cgit v1.2.3