nixpkgs/pkgs/by-name/fa/facter/package.nix

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

67 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{
bundlerApp,
bundlerUpdateScript,
coreutils,
facter,
gnugrep,
iproute2,
lib,
makeWrapper,
nettools,
pciutils,
procps,
stdenv,
testers,
util-linux,
virt-what,
zfs,
}:
2015-07-27 03:31:47 +00:00
bundlerApp {
pname = "facter";
gemdir = ./.;
exes = [ "facter" ];
2017-02-02 16:29:51 +00:00
nativeBuildInputs = [ makeWrapper ];
2016-05-22 09:09:13 +00:00
postBuild =
let
runtimeDependencies =
[
coreutils
gnugrep
nettools
pciutils
procps
util-linux
]
++ lib.optionals stdenv.isLinux [
iproute2
virt-what
zfs
];
in
''
wrapProgram $out/bin/facter --prefix PATH : ${lib.makeBinPath runtimeDependencies}
'';
2019-11-04 21:52:17 +00:00
passthru = {
tests.version = testers.testVersion {
command = "${lib.getExe facter} --version";
package = facter;
version = (import ./gemset.nix).facter.version;
};
updateScript = bundlerUpdateScript "facter";
};
2015-07-27 03:31:47 +00:00
meta = {
changelog = "https://www.puppet.com/docs/puppet/latest/release_notes_facter.html";
2015-07-27 03:31:47 +00:00
description = "A system inventory tool";
homepage = "https://github.com/puppetlabs/facter";
license = lib.licenses.asl20;
2023-11-27 01:17:53 +00:00
mainProgram = "facter";
maintainers = with lib.maintainers; [ womfoo anthonyroussel ];
platforms = lib.platforms.unix;
2015-07-27 03:31:47 +00:00
};
}