daml/nix/release.nix
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

24 lines
535 B
Nix

# Build instructions for Hydra CI
{ damlSrc ? { outPath = "${toString ../.}"; rev = "dirty"; }
, releaseBuild ? false
, supportedSystems ? ["x86_64-linux" "x86_64-darwin"]
}:
let
nixpkgs = import "${damlSrc}/nix/nixpkgs.nix" {};
withSystem = nixpkgs.lib.genAttrs supportedSystems;
packages = system:
import "${damlSrc}/nix/packages.nix" {
inherit system;
};
in
with nixpkgs;
with nixpkgs.lib;
{
tools = withSystem (system: (packages system).tools);
cached = withSystem (system: (packages system).cached);
}