mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
24 lines
535 B
Nix
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);
|
|
}
|