mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
37 lines
1,019 B
Nix
37 lines
1,019 B
Nix
{ stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, libyamlcpp, openssl, ruby, utillinux }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "facter";
|
|
version = "3.14.9";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "1c8g4fg8c9x816xx3m33njfn9h6ksl8g4rmc20y39v1y9jn72vxk";
|
|
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;
|
|
};
|
|
}
|