2022-08-12 12:06:08 +00:00
|
|
|
{ lib, bundlerApp, makeWrapper, bundlerUpdateScript, puppet-bolt, testers }:
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
bundlerApp {
|
|
|
|
pname = "bolt";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
gemdir = ./.;
|
|
|
|
exes = [ "bolt" ];
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
gemConfig.bolt = attrs: {
|
|
|
|
# scripts in libexec will be executed by remote host,
|
|
|
|
# so shebangs should remain unchanged
|
|
|
|
dontPatchShebangs = true;
|
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
postBuild = ''
|
|
|
|
# Set BOLT_GEM=1 to remove warning
|
|
|
|
wrapProgram $out/bin/bolt --set BOLT_GEM 1
|
|
|
|
'';
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = puppet-bolt;
|
|
|
|
version = (import ./gemset.nix).bolt.version;
|
|
|
|
};
|
|
|
|
updateScript = bundlerUpdateScript "puppet-bolt";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Execute commands remotely over SSH and WinRM";
|
|
|
|
homepage = "https://github.com/puppetlabs/bolt";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2021-09-22 15:38:15 +00:00
|
|
|
}
|