nixpkgs/pkgs/by-name/pd/pdk/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
805 B
Nix
Raw Normal View History

2024-03-24 16:40:37 +01:00
{
2023-11-17 16:46:28 +01:00
bundlerApp,
bundlerUpdateScript,
2024-03-24 16:40:37 +01:00
gnumake,
lib,
2023-11-17 16:46:28 +01:00
makeWrapper,
pdk,
testers,
2023-11-17 16:46:28 +01:00
}:
bundlerApp {
pname = "pdk";
gemdir = ./.;
exes = [ "pdk" ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pdk --prefix PATH : ${lib.makeBinPath [ gnumake ]}
'';
passthru = {
tests.version = testers.testVersion {
package = pdk;
version = (import ./gemset.nix).pdk.version;
};
updateScript = bundlerUpdateScript "pdk";
};
2023-11-17 16:46:28 +01:00
2024-03-24 16:40:37 +01:00
meta = {
changelog = "https://github.com/puppetlabs/pdk/blob/main/CHANGELOG.md";
2023-11-17 16:46:28 +01:00
description = "Puppet Development Kit";
2024-03-24 16:40:37 +01:00
homepage = "https://github.com/puppetlabs/pdk";
license = lib.licenses.asl20;
mainProgram = "pdk";
2024-03-24 16:40:53 +01:00
maintainers = with lib.maintainers; [ netali anthonyroussel ];
2023-11-17 16:46:28 +01:00
};
}