From 2a21328f7e0b751c6ec1f2539cb07dc8e85c8e43 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Fri, 24 Mar 2023 13:22:44 -0400 Subject: [PATCH] snappy: fix x86_64-darwin build See https://github.com/NixOS/nixpkgs/pull/221215#issuecomment-1482564003. --- pkgs/development/libraries/snappy/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/snappy/default.nix b/pkgs/development/libraries/snappy/default.nix index 9621a34115609..a45d0a419e62e 100644 --- a/pkgs/development/libraries/snappy/default.nix +++ b/pkgs/development/libraries/snappy/default.nix @@ -29,8 +29,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - # See https://github.com/NixOS/nixpkgs/pull/219778#issuecomment-1464884412. - env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isAarch64 && stdenv.isDarwin) "-Wno-sign-compare"; + # See https://github.com/NixOS/nixpkgs/pull/219778#issuecomment-1464884412 + # and https://github.com/NixOS/nixpkgs/pull/221215#issuecomment-1482564003. + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-sign-compare"; cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"