mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
pkg-config,
|
|
openssl,
|
|
cacert,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "dezoomify-rs";
|
|
version = "2.20.0";
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lovasoa";
|
|
repo = "dezoomify-rs";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Qj+qJvCk77hDw1bNgITETONZPGuFkcVJ+rzmeJGgVAs=";
|
|
};
|
|
|
|
nativeBuildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
openssl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cacert
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
cargoHash = "sha256-w3kYruKuraP1NPTGupqLUA2WoIlieIrMVWAy13vO8Ug=";
|
|
|
|
# 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";
|
|
changelog = "https://github.com/lovasoa/dezoomify-rs/releases/tag/${finalAttrs.src.tag}";
|
|
homepage = "https://github.com/lovasoa/dezoomify-rs/";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
fsagbuya
|
|
kybe236
|
|
];
|
|
mainProgram = "dezoomify-rs";
|
|
};
|
|
})
|