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
35 lines
832 B
Nix
35 lines
832 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
version = "9.1.5";
|
|
pname = "oxipng";
|
|
|
|
# do not use fetchCrate (only repository includes tests)
|
|
src = fetchFromGitHub {
|
|
owner = "shssoichiro";
|
|
repo = "oxipng";
|
|
tag = "v${version}";
|
|
hash = "sha256-UjiGQSLiUMuYm62wF7Xwhp2MRzCaQ9pbBBkvHnuspVw=";
|
|
};
|
|
|
|
cargoHash = "sha256-sdhyxJDUlb6+SJ/kvfqsplHOeCEbA3ls66eur3eeVVA=";
|
|
|
|
# don't require qemu for aarch64-linux tests
|
|
# error: linker `aarch64-linux-gnu-gcc` not found
|
|
postPatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/shssoichiro/oxipng";
|
|
description = "Multithreaded lossless PNG compression optimizer";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dywedir ];
|
|
mainProgram = "oxipng";
|
|
};
|
|
}
|