nixpkgs/pkgs/by-name/r1/r10k/package.nix

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

48 lines
924 B
Nix
Raw Normal View History

{
bundlerApp,
bundlerUpdateScript,
git,
gnutar,
gzip,
lib,
makeWrapper,
2024-03-24 15:34:50 +00:00
r10k,
testers,
}:
2016-09-30 16:28:11 +00:00
2019-05-03 16:42:01 +00:00
bundlerApp {
pname = "r10k";
gemdir = ./.;
exes = [ "r10k" ];
2016-09-30 16:28:11 +00:00
nativeBuildInputs = [ makeWrapper ];
2016-09-30 16:28:11 +00:00
2019-05-03 16:42:01 +00:00
postBuild = ''
wrapProgram $out/bin/r10k --prefix PATH : ${
lib.makeBinPath [
git
gnutar
gzip
]
}
2016-09-30 16:28:11 +00:00
'';
2024-03-24 15:34:50 +00:00
passthru = {
tests.version = testers.testVersion {
command = "${lib.getExe r10k} version";
package = r10k;
version = (import ./gemset.nix).r10k.version;
};
updateScript = bundlerUpdateScript "r10k";
};
meta = {
2016-09-30 16:28:11 +00:00
description = "Puppet environment and module deployment";
homepage = "https://github.com/puppetlabs/r10k";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ zimbatm manveru nicknovitski anthonyroussel ];
platforms = lib.platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "r10k";
2016-09-30 16:28:11 +00:00
};
}