facter: enable on darwin
This commit is contained in:
parent
2380e153a3
commit
951a5bcc7a
1 changed files with 5 additions and 5 deletions
|
@ -11,15 +11,15 @@ stdenv.mkDerivation rec {
|
||||||
owner = "puppetlabs";
|
owner = "puppetlabs";
|
||||||
};
|
};
|
||||||
|
|
||||||
CXXFLAGS = "-fpermissive -Wno-error=catch-value";
|
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-fpermissive -Wno-error=catch-value";
|
||||||
NIX_LDFLAGS = "-lblkid";
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lblkid";
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DFACTER_RUBY=${ruby}/lib/libruby.so"
|
"-DFACTER_RUBY=${ruby}/lib/libruby${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||||
"-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby"
|
"-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-copy";
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ boost cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
|
buildInputs = [ boost cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
|
||||||
|
@ -31,6 +31,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "A system inventory tool";
|
description = "A system inventory tool";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.womfoo ];
|
maintainers = [ maintainers.womfoo ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue