summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-27 12:30:27 +0100
committertv <tv@shackspace.de>2014-12-27 12:30:27 +0100
commitbe898b212e47b5cc803f1926e21c2f3400d1270c (patch)
tree4c5dc675afe15e0848b00e9be0f6fcd45961f024
parent25ea4a7567ad5b11a4c38e41ac893761efc1c602 (diff)
env.nix: ~/.env-home-reduction ref load-env 58f2234
-rw-r--r--env.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/env.nix b/env.nix
index 812bea7..71b6878 100644
--- a/env.nix
+++ b/env.nix
@@ -9,13 +9,8 @@ let
];
extraCmds = with pkgs; ''
- export HISTFILE="\$HOME/.history/env-${pname}"
- export MANPATH=\$MANPATH:${lftp}/share/man
+ export MANPATH=$(ls -d $(echo "$PATH" | tr : \\n | sed -n 's:\(^/nix/store/[^/]\+\).*:\1/share/man:p') 2>/dev/null | tr \\n :)
$(grep export ${hsEnv.outPath}/bin/ghc)
- ${mkExports staticPkgs}
- if test -f "\$HOME/.env-${pname}"; then
- . "\$HOME/.env-${pname}"
- fi
'';
hsEnv = hsPkgs.ghcWithPackagesOld (self: with self;