forked from dfinity/motoko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci.nix
22 lines (20 loc) · 738 Bytes
/
ci.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ src ? { rev = null; }, labels ? {}, releaseVersion ? "latest" }:
let
nixpkgs = import ./nix { };
inject-rev = drv: drv.overrideAttrs (attrs: { 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;
}