mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-09-17 10:27:08 +03:00
a8ffffc4cb
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/75 This also changes the default version to the latest version to 1.17 since now users can access older versions
26 lines
825 B
Nix
26 lines
825 B
Nix
{ pkgs ? import ./nix/nixpkgs.nix
|
|
, src ? { rev = ""; }
|
|
, ...
|
|
}:
|
|
|
|
let
|
|
products = {
|
|
inherit (pkgs.haskellPackages) dhall-kubernetes-generator;
|
|
|
|
# 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
|
|
[ "override" "overrideDerivation" ];
|
|
|
|
dhall-kubernetes = pkgs.releaseTools.aggregate {
|
|
name = "dhall-kubernetes-aggregate";
|
|
constituents = pkgs.lib.mapAttrsToList (_: v: v) products;
|
|
};
|
|
|
|
in
|
|
products // { inherit dhall-kubernetes; }
|