1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/tools/system/facter/default.nix
Kranium Gikos Mendoza b99f162e40 facter: 3.6.6 -> 3.7.1
2017-08-08 00:37:43 +10:00

35 lines
991 B
Nix

{ stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libyamlcpp, openssl, ruby, utillinux }:
stdenv.mkDerivation rec {
name = "facter-${version}";
version = "3.7.1";
src = fetchFromGitHub {
sha256 = "0v5g7qlqqixgvc2hf9440a8sfh8jvgzynwk5ipcb505hi00ddq7a";
rev = version;
repo = "facter";
owner = "puppetlabs";
};
CXXFLAGS = "-fpermissive";
NIX_CFLAGS_COMPILE = "-Wno-error";
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 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;
};
}