2019-04-04 11:33:38 +03:00
|
|
|
# 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; }
|
|
|
|
}:
|
2019-08-13 21:00:14 +03:00
|
|
|
let shared = rec {
|
2019-04-04 11:33:38 +03:00
|
|
|
inherit (pkgs)
|
2019-11-13 19:27:28 +03:00
|
|
|
coreutils
|
2019-04-04 11:33:38 +03:00
|
|
|
curl
|
|
|
|
docker
|
|
|
|
gawk
|
|
|
|
gnutar
|
2019-11-26 20:47:39 +03:00
|
|
|
grpc
|
2019-11-13 19:27:28 +03:00
|
|
|
grpcurl
|
2019-04-04 11:33:38 +03:00
|
|
|
gzip
|
|
|
|
imagemagick
|
|
|
|
jdk8
|
|
|
|
jq
|
2019-11-13 19:27:28 +03:00
|
|
|
netcat-gnu
|
2019-04-04 11:33:38 +03:00
|
|
|
nodejs
|
2020-03-12 12:36:40 +03:00
|
|
|
openssl
|
2020-04-11 22:53:44 +03:00
|
|
|
gnupatch
|
2019-04-04 11:33:38 +03:00
|
|
|
patchelf
|
2019-10-14 10:35:18 +03:00
|
|
|
postgresql_9_6
|
|
|
|
protobuf3_8
|
2019-07-05 17:04:47 +03:00
|
|
|
python3
|
2019-04-04 11:33:38 +03:00
|
|
|
zip
|
|
|
|
;
|
|
|
|
|
2019-06-27 19:47:42 +03:00
|
|
|
scala = pkgs.scala_2_12;
|
|
|
|
|
2019-05-07 14:55:30 +03:00
|
|
|
# We need to have a file in GOPATH that we can use as
|
|
|
|
# root_file in go_wrap_sdk.
|
|
|
|
go = pkgs.go.overrideAttrs (oldAttrs: {
|
|
|
|
doCheck = false;
|
|
|
|
postFixup = ''touch $out/share/go/ROOT'';
|
|
|
|
});
|
|
|
|
|
2019-07-01 14:26:19 +03:00
|
|
|
# GHC configured for static linking only.
|
2020-02-26 22:00:07 +03:00
|
|
|
ghcStaticPkgs = (import ./ghc.nix { inherit pkgs; }).override {
|
|
|
|
overrides = self: super: {
|
|
|
|
mkDerivation = args: super.mkDerivation (args // {
|
|
|
|
enableLibraryProfiling = false;
|
|
|
|
doHoogle = false;
|
|
|
|
doHaddock = false;
|
|
|
|
doCheck = false;
|
|
|
|
});
|
|
|
|
hlint = pkgs.haskell.lib.justStaticExecutables super.hlint;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
ghcStatic = ghcStaticPkgs.ghc;
|
|
|
|
hlint = ghcStaticPkgs.hlint;
|
2019-04-04 11:33:38 +03:00
|
|
|
|
2019-04-15 18:53:05 +03:00
|
|
|
|
|
|
|
# Java 8 development
|
|
|
|
mvn = pkgs.writeScriptBin "mvn" ''
|
|
|
|
exec ${pkgs.maven}/bin/mvn ''${MVN_SETTINGS:+-s "$MVN_SETTINGS"} "$@"
|
|
|
|
'';
|
|
|
|
|
2020-01-21 19:38:11 +03:00
|
|
|
# rules_nodejs expects nodejs in a subdirectory of a repository rule.
|
|
|
|
# We use a linkFarm to fulfill this requirement.
|
|
|
|
nodejsNested = pkgs.linkFarm "nodejs" [ { name = "node_nix"; path = pkgs.nodejs; }];
|
|
|
|
|
2019-11-20 17:27:32 +03:00
|
|
|
sass = pkgs.sass;
|
2019-04-04 11:33:38 +03:00
|
|
|
|
2020-02-07 15:13:38 +03:00
|
|
|
# sphinx 2.2.2 causes build failures of //docs:pdf-docs.
|
|
|
|
sphinx183 = pkgs.python3Packages.sphinx.overridePythonAttrs (attrs: rec {
|
|
|
|
version = "1.8.3";
|
|
|
|
src = attrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "c4cb17ba44acffae3d3209646b6baec1e215cad3065e852c68cc569d4df1b9f8";
|
|
|
|
};
|
|
|
|
});
|
2019-04-04 11:33:38 +03:00
|
|
|
|
|
|
|
# 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 {};
|
2019-08-13 21:00:14 +03:00
|
|
|
};
|
|
|
|
in shared // (if pkgs.stdenv.isLinux then {
|
2019-04-04 11:33:38 +03:00
|
|
|
inherit (pkgs)
|
|
|
|
glibcLocales
|
|
|
|
;
|
2019-08-13 21:00:14 +03:00
|
|
|
ghcStaticDwarf = shared.ghcStatic.override { enableDwarf = true; };
|
2019-04-04 11:33:38 +03:00
|
|
|
} else {})
|