snappy: fix x86_64-darwin build
See https://github.com/NixOS/nixpkgs/pull/221215#issuecomment-1482564003.
This commit is contained in:
parent
cd585031d3
commit
2a21328f7e
@ -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"}"
|
||||
|
Loading…
Reference in New Issue
Block a user