2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, libyamlcpp, openssl, ruby, utillinux }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "facter";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "3.14.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "1x7m11bda86xkr8mncy50nga9q3gnvnklcvwwpa7frka99kgai26";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
repo = pname;
|
|
|
|
owner = "puppetlabs";
|
|
|
|
};
|
|
|
|
|
|
|
|
CXXFLAGS = "-fpermissive -Wno-error=catch-value";
|
|
|
|
NIX_LDFLAGS = "-lblkid";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFACTER_RUBY=${ruby}/lib/libruby.so"
|
|
|
|
"-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby"
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-copy";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost 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;
|
|
|
|
};
|
|
|
|
}
|