facter: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-04 22:52:17 +01:00
parent 7b42597a59
commit bb8ee954be
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -14,11 +14,13 @@ stdenv.mkDerivation rec {
CXXFLAGS = "-fpermissive -Wno-error=catch-value";
NIX_LDFLAGS = "-lblkid";
cmakeFlags = [
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 ];