diff options
author | Samuel Ainsworth <sam.ainsworth@getcruise.com> | 2023-03-24 13:22:44 -0400 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-03-24 18:26:25 +0100 |
commit | 2a21328f7e0b751c6ec1f2539cb07dc8e85c8e43 (patch) | |
tree | cf03fe15ddb5100b6711d360871d247d0fdc5e82 /pkgs/development/libraries/snappy | |
parent | cd585031d3159ce83604050e984af6e56bfeb499 (diff) |
snappy: fix x86_64-darwin build
See https://github.com/NixOS/nixpkgs/pull/221215#issuecomment-1482564003.
Diffstat (limited to 'pkgs/development/libraries/snappy')
-rw-r--r-- | pkgs/development/libraries/snappy/default.nix | 5 |
1 files 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"}" |