From d84b462a711ce95593ff05a7581e722562c3835a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 14 Mar 2017 01:06:28 +0100 Subject: Implement old bar.hs --- shell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..b6595aa --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +{ nixpkgs ? import {}, compiler ? "default" }: + +let + inherit (nixpkgs) pkgs; + + haskellPackages = if compiler == "default" + then pkgs.haskellPackages + else pkgs.haskell.packages.${compiler}; + + drv = haskellPackages.callPackage ./bar.nix {}; +in + pkgs.stdenv.lib.overrideDerivation drv.env (oldAttrs: { + buildInputs = oldAttrs.buildInputs ++ (with pkgs; [ cabal2nix gup haskellPackages.hlint haskellPackages.stack haskellPackages.yesod-bin ]); + shellHook = '' + ${oldAttrs.shellHook} + export PROMPT_INFO="${oldAttrs.name}" + ''; + }) -- cgit v1.2.3