Skip to content

Commit

Permalink
snappy: fix x86_64-darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Ainsworth authored and vcunat committed Mar 24, 2023
1 parent cd58503 commit 2a21328
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/snappy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"}"
Expand Down

0 comments on commit 2a21328

Please sign in to comment.