{ lib, stdenv, rustPlatform, fetchFromGitHub, darwin, }: rustPlatform.buildRustPackage rec { pname = "dezoomify-rs"; version = "2.13.0"; src = fetchFromGitHub { owner = "lovasoa"; repo = "dezoomify-rs"; rev = "refs/tags/v${version}"; hash = "sha256-uo0QTaAAbNYMidlWBauW+3hdd0snEWH+I5KQL6Vxgug="; }; cargoHash = "sha256-0T5zvd78l3ghop/KoIgXYoGssVV9F+ppJV2pWyLnwxo="; buildInputs = lib.optionals stdenv.hostPlatform.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"; }; }