forked from caffeinelabs/motoko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.nix
More file actions
20 lines (18 loc) · 710 Bytes
/
ci.nix
File metadata and controls
20 lines (18 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ src ? { rev = null; }, labels ? { }, releaseVersion ? "latest" }:
let
nixpkgs = import ./nix { };
inject-rev = drv: drv.overrideAttrs { rev = src.rev; };
removeRecurseForDerivations =
nixpkgs.lib.filterAttrsRecursive (k: v: k != "recurseForDerivations");
linux = removeRecurseForDerivations
(import ./default.nix { system = "x86_64-linux"; });
darwin = removeRecurseForDerivations
(import ./default.nix { system = "x86_64-darwin"; });
all-systems-go = nixpkgs.releaseTools.aggregate {
name = "all-systems-go";
constituents = [ linux.all-systems-go darwin.all-systems-go ];
};
in linux // {
darwin = darwin.all-systems-go;
all-systems-go = inject-rev all-systems-go;
}