2024-03-24 15:31:44 +00:00
|
|
|
{
|
|
|
|
bundlerApp,
|
|
|
|
bundlerUpdateScript,
|
|
|
|
git,
|
|
|
|
gnutar,
|
|
|
|
gzip,
|
|
|
|
lib,
|
|
|
|
makeWrapper,
|
2024-03-24 15:34:50 +00:00
|
|
|
r10k,
|
|
|
|
testers,
|
2024-03-24 15:31:44 +00:00
|
|
|
}:
|
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
|
|
|
|
2022-08-14 03:41:33 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-09-30 16:28:11 +00:00
|
|
|
|
2019-05-03 16:42:01 +00:00
|
|
|
postBuild = ''
|
2024-03-24 15:31:44 +00:00
|
|
|
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";
|
|
|
|
};
|
2019-07-22 12:02:47 +00:00
|
|
|
|
2024-03-24 15:31:44 +00:00
|
|
|
meta = {
|
2016-09-30 16:28:11 +00:00
|
|
|
description = "Puppet environment and module deployment";
|
2024-03-24 15:31:44 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|