fizz: convert to new Darwin SDK pattern

This commit is contained in:
Emily 2024-11-13 13:51:53 +00:00
parent 95d28ae657
commit 91c31b1069
2 changed files with 24 additions and 21 deletions

View File

@ -14,6 +14,8 @@
libsodium,
gtest,
zlib,
apple-sdk_11,
darwinMinVersionHook,
}:
stdenv.mkDerivation (finalAttrs: {
@ -31,29 +33,30 @@ stdenv.mkDerivation (finalAttrs: {
cmakeDir = "../fizz";
cmakeFlags =
[
"-Wno-dev"
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
];
cmakeFlags = [
"-Wno-dev"
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
];
NIX_LDFLAGS = "-lz";
buildInputs = [
double-conversion
folly
glog
gflags
libevent
libiberty
libsodium
openssl
zlib
zstd
];
buildInputs =
[
double-conversion
folly
glog
gflags
libevent
libiberty
libsodium
openssl
zlib
zstd
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
(darwinMinVersionHook "11.0")
];
doCheck = true;
checkInputs = [

View File

@ -9270,7 +9270,7 @@ with pkgs;
};
fftwMpi = fftw.override { enableMpi = true; };
fizz = darwin.apple_sdk_11_0.callPackage ../development/libraries/fizz { };
fizz = callPackage ../development/libraries/fizz { };
flint = callPackage ../development/libraries/flint { };