dezoomify-rs: fix build on Darwin

It fails to link otherwise:

  = note: ld: framework not found SystemConfiguration
          clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `dezoomify-rs` (bin "dezoomify-rs") due to 1 previous error
This commit is contained in:
Alex James 2024-08-22 22:06:58 -05:00
parent 3aa46c6b25
commit dd2b338d7a
No known key found for this signature in database
GPG Key ID: 4729B829AC5FCC72

View File

@ -1,7 +1,9 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
@ -17,6 +19,13 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-v48eM43+/dt2M1J9yfjfTpBetv6AA2Hhzu8rrL3gojg=";
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
SystemConfiguration
]
);
checkFlags = [
# Tests failing due to networking errors in Nix build environment
"--skip=local_generic_tiles"