pdk: add passthru.tests.version, meta.changelog, meta.mainProgram

This commit is contained in:
Anthony Roussel 2024-03-24 16:42:33 +01:00
parent 6826d9de87
commit 6efd3efcb1
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,8 @@
gnumake,
lib,
makeWrapper,
pdk,
testers,
}:
bundlerApp {
@ -17,12 +19,20 @@ bundlerApp {
wrapProgram $out/bin/pdk --prefix PATH : ${lib.makeBinPath [ gnumake ]}
'';
passthru.updateScript = bundlerUpdateScript "pdk";
passthru = {
tests.version = testers.testVersion {
package = pdk;
version = (import ./gemset.nix).pdk.version;
};
updateScript = bundlerUpdateScript "pdk";
};
meta = {
changelog = "https://github.com/puppetlabs/pdk/blob/main/CHANGELOG.md";
description = "Puppet Development Kit";
homepage = "https://github.com/puppetlabs/pdk";
license = lib.licenses.asl20;
mainProgram = "pdk";
maintainers = with lib.maintainers; [ netali anthonyroussel ];
};
}