forked from wavewave/hoodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
95 lines (92 loc) · 2.57 KB
/
shell.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
{ pkgs ? (import <nixpkgs>{}) }:
with pkgs;
let hsenv = haskellPackages.ghcWithPackages
(p: with p; [
cabal-install
Diff
HTTP
TypeCompose
aeson
aeson-pretty
attoparsec
attoparsec-conduit
base16-bytestring
base64-bytestring
blaze-builder-conduit
blaze-markup
blaze-html
cairo
cereal
configurator
crypto-api
data-default
data-default-instances-dlist
dbus
directory-tree
double-conversion
dyre
either
entropy
errors
esqueleto
failure
fsnotify
gd
gtk3
handa-gdata
http-client-conduit
http-conduit
io-streams
lens
mmorph
monad-loops
mtl
network-info
network-simple
pango
pdf-toolbox-core
pdf-toolbox-content
pdf-toolbox-document
persistent
persistent-sqlite
persistent-template
#poppler
pureMD5
safecopy
stm
strict
svgcairo
system-filepath
transformers-free
uuid
websockets
xml-conduit
zlib-bindings
zlib-conduit
#
HStringTemplate
fgl
filemanip
hslogger
regex-base regex-posix regex-compat MissingH
gtk2hs-buildtools
]);
in stdenv.mkDerivation {
name = "env-hoodle-build";
propagatedBuildInputs = [ wrapGAppsHook ] ;
buildInputs = [ hsenv x11 xlibs.libXi gtk3 poppler pkgconfig sqlite
gnome3.defaultIconTheme
gnome3.gsettings_desktop_schemas
];
shellHook = ''
$(grep export ${hsenv.outPath}/bin/ghc)
export PATH=${binutils}/bin:${coreutils}/bin:$PATH
export NIX_STORE=$NIX_STORE
export LD_LIBRARY_PATH=${xlibs.libX11}/lib:${xlibs.libXi}/lib
export LIBRARY_PATH=${xlibs.libX11}/lib:${xlibs.libXi}/lib
export C_INCLUDE_PATH=${xlibs.libX11}/include:${xlibs.libXi}/include:${xlibs.xproto}/include:${xlibs.inputproto}/include
#export XDG_DATA_DIRS=${gtk3}/share/gsettings-schemas/${gtk3.name}/glib-2.0/schemas:${gnome3.gsettings_desktop_schemas}/share/gsettings-schemas/${gnome3.gsettings_desktop_schemas.name}:$XDG_DATA_DIRS
export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH:$XDG_DATA_DIRS
'';
}
#