2020-02-12 06:02:53 +00:00
|
|
|
{ buildDhallPackage, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
makeDhallKubernetes =
|
|
|
|
version:
|
|
|
|
lib.makeOverridable
|
|
|
|
( { rev
|
|
|
|
, sha256
|
|
|
|
, file ? "package.dhall"
|
|
|
|
}:
|
|
|
|
buildDhallPackage {
|
|
|
|
name = "dhall-kubernetes-${version}";
|
|
|
|
|
|
|
|
code =
|
|
|
|
let
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dhall-lang";
|
2020-02-17 00:02:24 +00:00
|
|
|
repo = "dhall-kubernetes";
|
2020-02-12 06:02:53 +00:00
|
|
|
|
|
|
|
inherit rev sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2020-02-12 14:44:55 +00:00
|
|
|
"${src}/${file}";
|
2020-02-12 06:02:53 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
in
|
|
|
|
lib.mapAttrs makeDhallKubernetes {
|
|
|
|
# 2.1.0 was the first version to introduce a top-level `package.dhall` file
|
|
|
|
"2.1.0" = {
|
2020-02-17 00:02:24 +00:00
|
|
|
rev = "bbfec3d8548b605f1c9628f34029ab4a7d928839";
|
2020-02-12 06:02:53 +00:00
|
|
|
sha256 = "10zkigj05khiy6w2sqcm5nw7d47r5k52xq8np8q86h0phy798g96";
|
|
|
|
};
|
|
|
|
|
|
|
|
"3.0.0" = {
|
2020-02-17 00:02:24 +00:00
|
|
|
rev = "3c6d09a9409977cdde58a091d76a6d20509ca4b0";
|
2020-02-12 06:02:53 +00:00
|
|
|
sha256 = "1r4awh770ghsrwabh5ddy3jpmrbigakk0h32542n1kh71w3cdq1h";
|
|
|
|
};
|
|
|
|
}
|