nixpkgs/pkgs/tools/admin/puppet/puppet-bolt/default.nix

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

37 lines
925 B
Nix
Raw Normal View History

{ lib, bundlerApp, makeWrapper, bundlerUpdateScript, puppet-bolt, testers }:
2021-09-01 15:50:35 +00:00
bundlerApp {
pname = "bolt";
2021-09-01 15:50:35 +00:00
gemdir = ./.;
exes = [ "bolt" ];
nativeBuildInputs = [ makeWrapper ];
2021-09-01 15:50:35 +00:00
gemConfig.bolt = attrs: {
# scripts in libexec will be executed by remote host,
# so shebangs should remain unchanged
dontPatchShebangs = true;
};
2021-09-01 15:50:35 +00:00
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;
};
2021-09-01 15:50:35 +00:00
}