Merge pull request #92290 from marsam/enable-facter-darwin
facter: enable on darwin
This commit is contained in:
commit
b0d53b7fe5
4 changed files with 12 additions and 17 deletions
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
owner = "puppetlabs";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
|
@ -21,10 +21,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
meta = with stdenv.lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = " A C++ port of the Typesafe Config library";
|
||||
description = "A C++ port of the Typesafe Config library";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -11,12 +11,7 @@ stdenv.mkDerivation rec {
|
|||
owner = "puppetlabs";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = builtins.toString [
|
||||
"-Wno-error=ignored-qualifiers"
|
||||
"-Wno-error=class-memaccess"
|
||||
"-Wno-error=catch-value"
|
||||
"-Wno-error=deprecated-copy"
|
||||
];
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ boost curl ruby ];
|
||||
|
@ -28,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||
description = "A collection of C++ and CMake utility libraries";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
owner = "puppetlabs";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||
description = "Library to report hypervisor information from inside a VM";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
platforms = with platforms; [ "i686-linux" "x86_64-linux" ]; # fails on aarch64
|
||||
platforms = with platforms; [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; # fails on aarch64
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ stdenv.mkDerivation rec {
|
|||
owner = "puppetlabs";
|
||||
};
|
||||
|
||||
CXXFLAGS = "-fpermissive -Wno-error=catch-value";
|
||||
NIX_LDFLAGS = "-lblkid";
|
||||
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-fpermissive -Wno-error=catch-value";
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lblkid";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DFACTER_RUBY=${ruby}/lib/libruby.so"
|
||||
"-DFACTER_RUBY=${ruby}/lib/libruby${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||
"-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-copy";
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ boost cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
|
||||
|
@ -31,6 +31,6 @@ stdenv.mkDerivation rec {
|
|||
description = "A system inventory tool";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.womfoo ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue