nixpkgs/pkgs/by-name/de/dezoomify-rs/package.nix
Alex James dd2b338d7a
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
2024-08-22 22:07:36 -05:00

43 lines
1009 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "dezoomify-rs";
version = "2.12.4";
src = fetchFromGitHub {
owner = "lovasoa";
repo = "dezoomify-rs";
rev = "refs/tags/v${version}";
hash = "sha256-7CRwlnIItJ89qqemkJbx5QjcLrwYrvpcjVYX5ZWP0W4=";
};
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"
"--skip=custom_size_local_zoomify_tiles"
];
meta = {
description = "Zoomable image downloader for Google Arts & Culture, Zoomify, IIIF, and others";
homepage = "https://github.com/lovasoa/dezoomify-rs/";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fsagbuya ];
mainProgram = "dezoomify-rs";
};
}