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
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
bundlerApp,
|
|
bundlerUpdateScript,
|
|
coreutils,
|
|
facter,
|
|
gnugrep,
|
|
iproute2,
|
|
lib,
|
|
makeWrapper,
|
|
net-tools,
|
|
pciutils,
|
|
procps,
|
|
stdenv,
|
|
testers,
|
|
util-linux,
|
|
virt-what,
|
|
zfs,
|
|
}:
|
|
|
|
bundlerApp {
|
|
pname = "facter";
|
|
gemdir = ./.;
|
|
exes = [ "facter" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild =
|
|
let
|
|
runtimeDependencies = [
|
|
coreutils
|
|
gnugrep
|
|
net-tools
|
|
pciutils
|
|
procps
|
|
util-linux
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
iproute2
|
|
virt-what
|
|
zfs
|
|
];
|
|
in
|
|
''
|
|
wrapProgram $out/bin/facter --prefix PATH : ${lib.makeBinPath runtimeDependencies}
|
|
'';
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion {
|
|
command = "${lib.getExe facter} --version";
|
|
package = facter;
|
|
version = (import ./gemset.nix).facter.version;
|
|
};
|
|
updateScript = bundlerUpdateScript "facter";
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://www.puppet.com/docs/puppet/latest/release_notes_facter.html";
|
|
description = "System inventory tool";
|
|
homepage = "https://github.com/puppetlabs/facter";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "facter";
|
|
maintainers = with lib.maintainers; [
|
|
womfoo
|
|
anthonyroussel
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|