blob: 4e369d258d91a506d7138760c6ddd4f321e0e0f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
let
pkgs = import <nixpkgs> {};
inherit (pkgs) callPackage;
hsEnv = pkgs.haskellPackages.ghcWithPackagesOld (hsPkgs : with hsPkgs; [
dataDefault
vty
# for NotmuchCmd
aeson
#blazeHtml
caseInsensitive
#conduit
#conduitExtra
process
]);
in
pkgs.myEnvFun rec {
name = "much";
buildInputs = with pkgs; [
hsEnv
];
extraCmds = ''
export HISTFILE=/home/tv/.history/env-${name}
$(grep export ${hsEnv.outPath}/bin/ghc)
'';
}
|