Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-16 01:00:58 +00:00
committed by GitHub
41 changed files with 3677 additions and 198 deletions
+5 -1
View File
@@ -8,6 +8,7 @@
, cairo
, fontconfig
, libsigcxx30
, ApplicationServices
}:
stdenv.mkDerivation rec {
@@ -30,6 +31,8 @@ stdenv.mkDerivation rec {
buildInputs = [
boost # for tests
fontconfig
] ++ lib.optionals stdenv.isDarwin [
ApplicationServices
];
propagatedBuildInputs = [
@@ -47,7 +50,8 @@ stdenv.mkDerivation rec {
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
doCheck = true;
# Tests fail on Darwin, possibly because of sandboxing.
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "A 2D graphics library with support for multiple output devices";
@@ -12,11 +12,17 @@ stdenv.mkDerivation rec {
};
buildInputs = lib.optional enableUnicodeHelp [ icu.dev ];
cmakeFlags = lib.optional enableUnicodeHelp [ "-DCXXOPTS_USE_UNICODE_HELP=TRUE" ];
cmakeFlags = [ "-DCXXOPTS_BUILD_EXAMPLES=OFF" ]
++ lib.optional enableUnicodeHelp "-DCXXOPTS_USE_UNICODE_HELP=TRUE"
# Due to -Wsuggest-override, remove when cxxopts is updated
++ lib.optional stdenv.isDarwin "-DCXXOPTS_ENABLE_WARNINGS=OFF";
nativeBuildInputs = [ cmake ] ++ lib.optional enableUnicodeHelp [ pkg-config ];
doCheck = true;
# Conflict on case-insensitive filesystems.
dontUseCmakeBuildDir = true;
meta = with lib; {
homepage = "https://github.com/jarro2783/cxxopts";
description = "Lightweight C++ GNU-style option parser library";