@@ -1,4 +1,4 @@
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}";
@@ -8,9 +8,14 @@ stdenv.mkDerivation rec {
88 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;