forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bazel.nix
91 lines (85 loc) · 1.82 KB
/
bazel.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
# Bazel MUST only use this file to source dependencies
#
# This allows CI to pre-build and cache the build outputs
{ system ? builtins.currentSystem
, pkgs ? import ./nixpkgs.nix { inherit system; }
}:
rec {
inherit (pkgs)
curl
docker
gawk
gnutar
go
gzip
hlint
imagemagick
jdk8
jq
libffi
nodejs
pandoc
patchelf
protobuf3_5
zip
;
# the GHC version we use plus custom overrides to sync with the
# stackage version as specified in stack.yaml. Prefer to use this for
# haskell binaries to keep the dev-env closure size as small
# as possible.
ghc = import ./ghc.nix { inherit pkgs; };
# GHC with the "c2hs" package included.
ghcWithC2hs = ghc.ghcWithPackages (p: [p.c2hs]);
# The sass derivation in nixos-18.09 is broken, so we add our own
# created with bundix.
sass = pkgs.callPackage ./overrides/sass {};
sphinx183 = import ./tools/sphinx183 {
inherit pkgs;
pythonPackages = pkgs.python36Packages;
};
# Custom combination of latex packages for our latex needs
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive)
bera
capt-of
collection-fontsrecommended
collection-luatex
datetime
enumitem
environ
epigraph
eqparbox
eulervm
fancyhdr
fmtcount
fncychap
footmisc
footnotebackref
framed
latexmk
lipsum
mathpartir
mathpazo
mnsymbol
multirow
needspace
palatino
scheme-small
tabulary
threeparttable
tikzsymbols
titlesec
tocbibind
todonotes
trimspaces
varwidth
wrapfig
xargs
;
};
bazel-cc-toolchain = pkgs.callPackage ./tools/bazel-cc-toolchain {};
} // (if pkgs.stdenv.isLinux then {
inherit (pkgs)
glibcLocales
;
} else {})