depot/pkgs/by-name/pd/pdk/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
805 B
Nix

{
bundlerApp,
bundlerUpdateScript,
gnumake,
lib,
makeWrapper,
pdk,
testers,
}:
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";
};
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 ];
};
}