From ffdad422d0dcb6f33cfe29f9adb25b0db35a1682 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 17 Dec 2021 21:10:16 -0500 Subject: [PATCH] waifu2x-converter-cpp: fix darwin build --- pkgs/tools/graphics/waifu2x-converter-cpp/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/graphics/waifu2x-converter-cpp/default.nix b/pkgs/tools/graphics/waifu2x-converter-cpp/default.nix index 8d8ae6e71e42..8afca16eb09b 100644 --- a/pkgs/tools/graphics/waifu2x-converter-cpp/default.nix +++ b/pkgs/tools/graphics/waifu2x-converter-cpp/default.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake makeWrapper ]; + # main.cpp:498:12: error: 'is_directory' is unavailable: introduced in macOS 10.15 + CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY"; + preFixup = lib.optionalString stdenv.isLinux '' wrapProgram $out/bin/waifu2x-converter-cpp --prefix LD_LIBRARY_PATH : "${ocl-icd}/lib" '';