@@ -1,16 +1,21 @@
1−{ stdenv, fetchurl, boost, cmake, curl, leatherman, libyamlcpp, openssl, utillinux }:
1+{ stdenv, fetchurl, boost, cmake, curl, leatherman, libyamlcpp, openssl, ruby, utillinux }:
22
33stdenv.mkDerivation rec {
44 name = "facter-${version}";
5− version = "3.1.5";
5+ version = "3.1.6";
66 src = fetchurl {
77 url = "https://downloads.puppetlabs.com/facter/${name}.tar.gz";
8− sha256 = "0k2k92y42zb6vf542zwkhvg15kv32yb4zvw6nlcqlgmyg19c5qmv";
8+ sha256 = "1kv4k9zqpsiw362kk1rw1a4sixd0pmnh57ghd4k4pffr2dkmdfsv";
99 };
1010
11+ cmakeFlags = [ "-DFACTER_RUBY=${ruby}/lib/libruby.so" ];
12+
13+ # since we cant expand $out in cmakeFlags
14+ preConfigure = "cmakeFlags+=\" -DRUBY_LIB_INSTALL=$out/lib/ruby\"";
15+
1116 libyamlcpp_ = libyamlcpp.override { makePIC = true; };
1217
13− buildInputs = [ boost cmake curl leatherman libyamlcpp_ openssl utillinux ];
18+ buildInputs = [ boost cmake curl leatherman libyamlcpp_ openssl ruby utillinux ];
1419
1520 meta = with stdenv.lib; {
1621 homepage = https://github.com/puppetlabs/facter;