mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
211fdaa087
the docs for bundlerApp used to have makeWrapper in buildInputs but it has been corrected already
37 lines
925 B
Nix
37 lines
925 B
Nix
{ lib, bundlerApp, makeWrapper, bundlerUpdateScript, puppet-bolt, testers }:
|
|
|
|
bundlerApp {
|
|
pname = "bolt";
|
|
|
|
gemdir = ./.;
|
|
exes = [ "bolt" ];
|
|
nativeBuildInputs = [ 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;
|
|
};
|
|
}
|