diff options
Diffstat (limited to 'pkgs/tools/admin/puppet/puppet-bolt/default.nix')
-rw-r--r-- | pkgs/tools/admin/puppet/puppet-bolt/default.nix | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/pkgs/tools/admin/puppet/puppet-bolt/default.nix b/pkgs/tools/admin/puppet/puppet-bolt/default.nix index 0ad9dc5ec87d..7752ddb2808d 100644 --- a/pkgs/tools/admin/puppet/puppet-bolt/default.nix +++ b/pkgs/tools/admin/puppet/puppet-bolt/default.nix @@ -1,13 +1,36 @@ -{ bundlerApp, makeWrapper }: +{ 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; + }; } |