2b5c95ff37
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/facter/versions. These checks were done: - built on NixOS - ran `/nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0/bin/facter -h` got 0 exit code - ran `/nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0/bin/facter --help` got 0 exit code - ran `/nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0/bin/facter help` got 0 exit code - ran `/nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0/bin/facter -v` and found version 3.11.0 - ran `/nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0/bin/facter --version` and found version 3.11.0 - found 3.11.0 with grep in /nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0 - found 3.11.0 in filename of file in /nix/store/azfbahp02g1xs110kvk4j281biimil8d-facter-3.11.0 - directory tree listing: https://gist.github.com/f7f2e9775c3cd7188e8466f33d703e81
33 lines
980 B
Nix
33 lines
980 B
Nix
{ stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, libyamlcpp, openssl, ruby, utillinux }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "facter-${version}";
|
|
version = "3.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "15cqn09ng23k6a70xvxbpjjqlxw46838k7qr9216lcvxwl2banih";
|
|
rev = version;
|
|
repo = "facter";
|
|
owner = "puppetlabs";
|
|
};
|
|
|
|
CXXFLAGS = "-fpermissive";
|
|
NIX_LDFLAGS = "-lblkid";
|
|
|
|
cmakeFlags = [ "-DFACTER_RUBY=${ruby}/lib/libruby.so" ];
|
|
|
|
# since we cant expand $out in cmakeFlags
|
|
preConfigure = "cmakeFlags+=\" -DRUBY_LIB_INSTALL=$out/lib/ruby\"";
|
|
|
|
buildInputs = [ boost cmake cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/puppetlabs/facter;
|
|
description = "A system inventory tool";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.womfoo ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|