snappy: fix x86_64-darwin build

See https://github.com/NixOS/nixpkgs/pull/221215#issuecomment-1482564003.
This commit is contained in:
Samuel Ainsworth 2023-03-24 13:22:44 -04:00 committed by Vladimír Čunát
parent cd585031d3
commit 2a21328f7e
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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"}"