@cryptotaxi247 / infra / commits / 4a1801dd

channels.nix: add 'current' data

Graham Christensen committed Dec 26, 2019 at 03:47 UTC 4a1801dd1de5fe59562a2427f38090b38a4c3d99
2 files changed +56 -15
channels.nix
+55 -14
@@ -1,20 +1,61 @@
1 -{
1 +rec {
2 channels = {
3 - # Channel name https://hydra.nixos.org/job/<value>/latest-finished
4 - "nixos-unstable" = "nixos/trunk-combined/tested";
5 - "nixos-unstable-small" = "nixos/unstable-small/tested";
6 - "nixpkgs-unstable" = "nixpkgs/trunk/unstable";
3 + # "Channel name" = {
4 + # job = "project/jobset/jobname"; like https://hydra.nixos.org/job/<value>/latest-finished
5 + # current = true; # when adding a new version, mark the oldest as "not current"
6 + # };
7 + "nixos-unstable" = {
8 + job = "nixos/trunk-combined/tested";
9 + current = true;
10 + };
11 + "nixos-unstable-small" = {
12 + job = "nixos/unstable-small/tested";
13 + current = true;
14 + };
15 + "nixpkgs-unstable" = {
16 + job = "nixpkgs/trunk/unstable";
17 + current = true;
18 + };
19
8 - "nixos-19.09" = "nixos/release-19.09/tested";
9 - "nixos-19.09-small" = "nixos/release-19.09-small/tested";
10 - "nixpkgs-19.09-darwin" = "nixpkgs/nixpkgs-19.09-darwin/darwin-tested";
20 + "nixos-19.09" = {
21 + job = "nixos/release-19.09/tested";
22 + current = true;
23 + };
24 + "nixos-19.09-small" = {
25 + job = "nixos/release-19.09-small/tested";
26 + current = true;
27 + };
28 + "nixpkgs-19.09-darwin" = {
29 + job = "nixpkgs/nixpkgs-19.09-darwin/darwin-tested";
30 + current = true;
31 + };
32
12 - "nixos-19.03" = "nixos/release-19.03/tested";
13 - "nixos-19.03-small" = "nixos/release-19.03-small/tested";
14 - "nixpkgs-19.03-darwin" = "nixpkgs/nixpkgs-19.03-darwin/darwin-tested";
33 + "nixos-19.03" = {
34 + job = "nixos/release-19.03/tested";
35 + current = false;
36 + };
37 + "nixos-19.03-small" = {
38 + job = "nixos/release-19.03-small/tested";
39 + current = false;
40 + };
41 + "nixpkgs-19.03-darwin" = {
42 + job = "nixpkgs/nixpkgs-19.03-darwin/darwin-tested";
43 + current = false;
44 + };
45
16 - "nixos-18.09" = "nixos/release-18.09/tested";
17 - "nixos-18.09-small" = "nixos/release-18.09-small/tested";
18 - "nixpkgs-18.09-darwin" = "nixpkgs/nixpkgs-18.09-darwin/darwin-tested";
46 + "nixos-18.09" = {
47 + job = "nixos/release-18.09/tested";
48 + current = false;
49 + };
50 + "nixos-18.09-small" = {
51 + job = "nixos/release-18.09-small/tested";
52 + current = false;
53 + };
54 + "nixpkgs-18.09-darwin" = {
55 + job = "nixpkgs/nixpkgs-18.09-darwin/darwin-tested";
56 + current = false;
57 + };
58 };
59 +
60 + channel-with-urls = (builtins.mapAttrs (name: about: about.job) channels);
61 }
modules/hydra-mirror.nix
+1 -1
@@ -1,7 +1,7 @@
1 { lib, pkgs, ... }:
2
3 let
4 - channels = (import ../channels.nix).channels;
4 + channels = (import ../channels.nix).channels-with-urls;
5
6 channelScripts = import /home/deploy/src/nixos-channel-scripts { inherit pkgs; }; # FIXME
7 orderLib = import ../lib/service-order.nix { inherit lib; };