From 9f0092dae1f1301e48de6c1a4379a3adecd1f9e2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 19 Jan 2017 10:31:42 +0100 Subject: Add shell hook to identify shell environment --- shell.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..0c20c9f --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +{ pkgs ? (import {}) +}: + +pkgs.lib.overrideDerivation (pkgs.haskellPackages.callPackage ./default.nix {}) (oldArgs: { + shellHook = '' + export PROMPT_INFO=${oldArgs.name} + ''; +}) -- cgit v1.2.3