-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathshell.nix
More file actions
32 lines (28 loc) · 767 Bytes
/
shell.nix
File metadata and controls
32 lines (28 loc) · 767 Bytes
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
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let ghc = haskell.packages.ghc802.ghcWithPackages (pkgs: [pkgs.gtk2hs-buildtools]);
in
stdenv.mkDerivation {
name = "yi";
buildInputs = [
cairo
pango
gtk2
ghc
haskellPackages.gtk2hs-buildtools
icu.out
ncurses.out
pkgconfig
glibcLocales
which
xsel
zlib.out
];
shellHook = ''
export LC_ALL=en_US.UTF-8
export PATH="${which}/bin:${xsel}/bin:${haskellPackages.gtk2hs-buildtools}/bin:$PATH"
export CPATH="${icu.dev}/include:${ncurses.dev}/include:$CPATH"
export LIBRARY_PATH="${icu.dev}/lib:${ncurses.dev}/lib:${zlib.out}/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="${icu.out}/lib:${ncurses.out}/lib:$LD_LIBRARY_PATH"
'';
}