Files
nixpkgs/pkgs/by-name/pu/puppet-bolt/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.2 KiB
Nix

{
bundlerApp,
defaultGemConfig,
bundlerUpdateScript,
lib,
makeWrapper,
puppet-bolt,
testers,
}:
(bundlerApp {
pname = "bolt";
gemdir = ./.;
exes = [ "bolt" ];
nativeBuildInputs = [ makeWrapper ];
gemConfig = defaultGemConfig // {
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 = {
description = "Execute commands remotely over SSH and WinRM";
homepage = "https://github.com/puppetlabs/bolt";
changelog = "https://github.com/puppetlabs/bolt/blob/main/CHANGELOG.md";
license = lib.licenses.asl20;
mainProgram = "bolt";
maintainers = with lib.maintainers; [
uvnikita
anthonyroussel
];
platforms = lib.platforms.unix;
};
}).overrideAttrs
(old: {
name = "puppet-bolt-${(import ./gemset.nix).bolt.version}";
})