nixpkgs/pkgs/tools/admin/puppet/puppet-bolt/default.nix
Nikita Uvarov 01c43cf325 puppet-bolt: 3.19.0 → 3.24.0
Add meta, test and updateScript. Also prevent shebangs patching in bolt gem:
scripts from libexec will be executed on remote host, so should remain
unchanged.
2022-07-27 22:42:50 +02:00

37 lines
919 B
Nix

{ lib, bundlerApp, makeWrapper, bundlerUpdateScript, puppet-bolt, testers }:
bundlerApp {
pname = "bolt";
gemdir = ./.;
exes = [ "bolt" ];
buildInputs = [ makeWrapper ];
gemConfig.bolt = attrs: {
# scripts in libexec will be executed by remote host,
# so shebangs should remain unchanged
dontPatchShebangs = true;
};
postBuild = ''
# Set BOLT_GEM=1 to remove warning
wrapProgram $out/bin/bolt --set BOLT_GEM 1
'';
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;
};
}