Files
nixpkgs/pkgs/by-name/de/dezoomify-rs/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.2 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
nix-update-script,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dezoomify-rs";
version = "2.15.0";
src = fetchFromGitHub {
owner = "lovasoa";
repo = "dezoomify-rs";
tag = "v${finalAttrs.version}";
hash = "sha256-gx/h9i+VPU0AtpQEkN/zCLmeyaW5wSUCfdY52hPwm3Q=";
};
nativeBuildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
pkg-config
];
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
openssl
];
passthru.updateScript = nix-update-script { };
cargoHash = "sha256-Jh1a5DW25a4wzuZbOAoTn/crp/ioLsmq3jDiqIctCCM=";
# hyper uses SystemConfiguration.framework to read system proxy settings.
# Allow access to the Mach service to prevent the tests from failing.
sandboxProfile = ''
(allow mach-lookup (global-name "com.apple.SystemConfiguration.configd"))
'';
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";
};
})