From dd2b338d7a5e24f18c5a2d59bf4ccf7f3084fa5e Mon Sep 17 00:00:00 2001 From: Alex James Date: Thu, 22 Aug 2024 22:06:58 -0500 Subject: [PATCH] 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 --- pkgs/by-name/de/dezoomify-rs/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/de/dezoomify-rs/package.nix b/pkgs/by-name/de/dezoomify-rs/package.nix index d2660fff82ab8..e35c607c55a00 100644 --- a/pkgs/by-name/de/dezoomify-rs/package.nix +++ b/pkgs/by-name/de/dezoomify-rs/package.nix @@ -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"