2019-03-30 13:05:29 +03:00
|
|
|
{ pkgs ? import ./nix/nixpkgs.nix
|
|
|
|
, src ? { rev = ""; }
|
|
|
|
, ...
|
|
|
|
}:
|
2020-01-11 08:40:36 +03:00
|
|
|
|
|
|
|
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'';
|
|
|
|
} // builtins.removeAttrs pkgs.dhall-kubernetes
|
2020-09-11 05:21:52 +03:00
|
|
|
[ "override" "overrideDerivation" ]
|
|
|
|
// pkgs.dhall-kubernetes-tests;
|
2020-01-11 08:40:36 +03:00
|
|
|
|
2020-01-13 02:00:56 +03:00
|
|
|
dhall-kubernetes = pkgs.releaseTools.aggregate {
|
2020-01-11 08:40:36 +03:00
|
|
|
name = "dhall-kubernetes-aggregate";
|
|
|
|
constituents = pkgs.lib.mapAttrsToList (_: v: v) products;
|
2018-08-03 17:24:32 +03:00
|
|
|
};
|
2020-01-11 08:40:36 +03:00
|
|
|
|
|
|
|
in
|
2020-01-13 02:00:56 +03:00
|
|
|
products // { inherit dhall-kubernetes; }
|