-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.nix
197 lines (181 loc) · 5.03 KB
/
config.nix
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{ pkgs }: {
packageOverrides = super: let self = super.pkgs; in with self; rec {
myHaskellPackages = libProf: self: super:
with pkgs.haskell.lib; let pkg = self.callPackage; in rec {
coldasdice = pkg ~/src/coldasdice {};
marko-chain = pkg ~/src/marko-chain {};
skeletonkey = pkg ~/src/skeletonkey {};
mkDerivation = pkg: super.mkDerivation (pkg // {
enableLibraryProfiling = libProf;
enableExecutableProfiling = false;
});
};
haskellPackages = haskellHEADPackages;
haskellHEADPackages = super.haskell.packages.ghcHEAD.override {
overrides = self: super: (myHaskellPackages false self super)
// (with pkgs.haskell.lib; {
#ghc-exactprint = dontCheck super.ghc-exactprint;
#argon2 = dontCheck (super.argon2);
#pointfree = doJailbreak super.pointfree;
#cryptohash-sha256 = dontCheck (super.cryptohash-sha256);
#dhall = super.callHackage "dhall" "1.14.0" {};
#ListLike = addBuildDepend super.ListLike super.semigroups;
#conduit-extra = dontCheck super.conduit-extra;
});
};
haskell862Packages = super.haskell.packages.ghc862.override {
overrides = self: super: (myHaskellPackages false self super)
// (with pkgs.haskell.lib; {
#ghc-exactprint = dontCheck super.ghc-exactprint;
#argon2 = dontCheck (super.argon2);
#pointfree = doJailbreak super.pointfree;
#cryptohash-sha256 = dontCheck (super.cryptohash-sha256);
#dhall = super.callHackage "dhall" "1.14.0" {};
#ListLike = addBuildDepend super.ListLike super.semigroups;
#conduit-extra = dontCheck super.conduit-extra;
});
};
haskell844Packages = super.haskell.packages.ghc844.override {
overrides = self: super: (myHaskellPackages false self super)
// (with pkgs.haskell.lib; {
#ghc-exactprint = dontCheck super.ghc-exactprint;
argon2 = dontCheck (super.argon2);
#pointfree = doJailbreak super.pointfree;
cryptohash-sha256 = dontCheck (super.cryptohash-sha256);
#dhall = super.callHackage "dhall" "1.14.0" {};
#ListLike = addBuildDepend super.ListLike super.semigroups;
conduit-extra = dontCheck super.conduit-extra;
});
};
haskell822Packages = super.haskell.packages.ghc822.override {
overrides = self: super: (myHaskellPackages false self super)
// (with pkgs.haskell.lib; {
#ghc-exactprint = dontCheck super.ghc-exactprint;
argon2 = dontCheck (super.argon2);
pointfree = doJailbreak super.pointfree;
cryptohash-sha256 = dontCheck (super.cryptohash-sha256);
dhall = super.callHackage "dhall" "1.14.0" {};
ListLike = addBuildDepend super.ListLike super.semigroups;
});
};
profiledHaskellPackages = super.haskell.packages.ghc822.override {
overrides = myHaskellPackages true;
};
ghcEnv = pkgs.myEnvFun {
name = "ghc";
buildInputs = with haskellPackages; [
(ghcWithHoogle (import ~/src/nix-config/package-list.nix))
# dev tools
apply-refact # hlint refactoring
bind
brittany
cabal-install
fast-tags
# ghc-mod
ghcid
# hasktags
hindent
hlint
pointfree
];
};
ghc82ProfEnv = pkgs.myEnvFun {
name = "ghc82prof";
buildInputs = with profiledHaskellPackages; [
profiledHaskell821Packages.ghc
# dev tools
cabal-install
];
};
haskellToolsEnv = pkgs.buildEnv {
name = "haskellTools";
paths = [
cabal-install
cabal2nix
stack
];
};
systemToolsEnv = pkgs.buildEnv {
name = "systemTools";
paths = [
bind
fd
gist
moreutils
mupdf
ripgrep
rsync
time
tmux
unrar
unzip
zip
];
};
linuxToolsEnv = pkgs.buildEnv {
name = "linuxTools";
paths = [
dunst
gnome3.file-roller
tomb
udisks2
xdotool
];
};
netToolsEnv = pkgs.buildEnv {
name = "netTools";
paths = [
irssi
toxvpn
];
};
webToolsEnv = pkgs.buildEnv {
name = "webTools";
paths = [
firefox
#nylas-mail-bin
thunderbird
];
};
gamesEnv = pkgs.buildEnv {
name = "timeWastingTools";
paths = [
#desmume
dwarf-fortress
endless-sky
];
};
miscEnv = pkgs.buildEnv {
name = "miscTools";
paths = [
anki
inkscape
ifuse
];
};
writingEnv = pkgs.myEnvFun {
name = "writing";
buildInputs = with haskellPackages; [
pandoc
rst2html5
(texlive.combine { inherit (texlive)
scheme-small
collection-fontsrecommended
enumitem
fontawesome; })
(ghcWithHoogle (import ~/src/nix-config/package-list.nix))
# dev tools
apply-refact # hlint refactoring
cabal-install
bind
fast-tags
ghcid
hlint
pointfree
hindent
brittany
];
};
};
allowUnfree = true;
}