mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
f0a111ca1a
* Get grpc from nix on unix The one from Bazel seems to cause linking issues when trying to run things in GHCi. I’ve spent some time trying to use rules_foreign_cc to build gRPC using CMake but decided that for my own sanity it’s better to not pursue that further. * Address review comments * Add missing module load * Cleanup GHCI_SCRIPT * use the correct file ending on macos * Import is_linux * Switch back to grpc-1.23 The newer version seems to cause issues in combination with the java libraries. * Try to fix package_app on macos * more debugging * Maybe this is not necessary, we will never know * linkers are the worst * Remove debugging output again * readd rpaths * treat libdispatch specially * remove hack * more fooling around * lalala
103 lines
2.0 KiB
Nix
103 lines
2.0 KiB
Nix
# 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; }
|
|
}:
|
|
let shared = rec {
|
|
inherit (pkgs)
|
|
coreutils
|
|
curl
|
|
docker
|
|
gawk
|
|
gnutar
|
|
grpc
|
|
grpcurl
|
|
gzip
|
|
hlint
|
|
imagemagick
|
|
jdk8
|
|
jq
|
|
netcat-gnu
|
|
nodejs
|
|
patchelf
|
|
postgresql_9_6
|
|
protobuf3_8
|
|
python3
|
|
zip
|
|
;
|
|
|
|
scala = pkgs.scala_2_12;
|
|
|
|
# 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'';
|
|
});
|
|
|
|
ghc = pkgs.haskell.packages.ghc865;
|
|
|
|
# GHC configured for static linking only.
|
|
ghcStatic = (import ./ghc.nix { inherit pkgs; }).ghc.override { enableShared = false; };
|
|
|
|
|
|
# Java 8 development
|
|
mvn = pkgs.writeScriptBin "mvn" ''
|
|
exec ${pkgs.maven}/bin/mvn ''${MVN_SETTINGS:+-s "$MVN_SETTINGS"} "$@"
|
|
'';
|
|
|
|
sass = pkgs.sass;
|
|
|
|
sphinx183 = pkgs.python3Packages.sphinx;
|
|
|
|
# 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 {};
|
|
};
|
|
in shared // (if pkgs.stdenv.isLinux then {
|
|
inherit (pkgs)
|
|
glibcLocales
|
|
;
|
|
ghcStaticDwarf = shared.ghcStatic.override { enableDwarf = true; };
|
|
} else {})
|