mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
39 lines
805 B
Nix
39 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 ];
|
|
};
|
|
}
|