-
Notifications
You must be signed in to change notification settings - Fork 61
/
release.nix
27 lines (23 loc) · 909 Bytes
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs ? import ./nix/nixpkgs.nix
, src ? { rev = ""; }
, ...
}:
let
products = {
# Derivation that trivially depends on the input source code revision.
# As this is included in the "dhall-lang" aggregate, it forces every
# commit to have a corresponding GitHub status check, even if the
# commit doesn't make any changes (which can happen when merging
# master in).
rev = pkgs.runCommand "rev" {} ''echo "${src.rev}" > $out'';
inherit (pkgs) examples readme;
} // builtins.removeAttrs pkgs.dhall-kubernetes
[ "override" "overrideDerivation" ]
// builtins.removeAttrs pkgs.dhall-kubernetes-tests
[ "override-test" "overrideDerivation-test" ];
dhall-kubernetes = pkgs.releaseTools.aggregate {
name = "dhall-kubernetes-aggregate";
constituents = pkgs.lib.mapAttrsToList (_: v: v) products;
};
in
products // { inherit dhall-kubernetes; }