From 816ec374f1c6e5e8af6c072f5bc2d8a3bc7cce65 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 12 Jan 2025 11:34:55 +0100 Subject: [PATCH] onnxruntime: fix build on darwin --- pkgs/development/libraries/onnxruntime/default.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/development/libraries/onnxruntime/default.nix b/pkgs/development/libraries/onnxruntime/default.nix index ced9ce9945fd..93a8e7c65a1c 100644 --- a/pkgs/development/libraries/onnxruntime/default.nix +++ b/pkgs/development/libraries/onnxruntime/default.nix @@ -218,11 +218,7 @@ effectiveStdenv.mkDerivation rec { ]; env = lib.optionalAttrs effectiveStdenv.cc.isClang { - NIX_CFLAGS_COMPILE = toString [ - "-Wno-error=deprecated-declarations" - "-Wno-error=deprecated-pragma" - "-Wno-error=unused-but-set-variable" - ]; + NIX_CFLAGS_COMPILE = "-Wno-error"; }; # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox @@ -275,9 +271,5 @@ effectiveStdenv.mkDerivation rec { platforms = platforms.unix; license = licenses.mit; maintainers = with maintainers; [ puffnfresh ck3d cbourjau ]; - badPlatforms = [ - # error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture] - lib.systems.inspect.patterns.isDarwin - ]; }; }