depot/third_party/nixpkgs/pkgs/tools/graphics/oxipng/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

23 lines
621 B
Nix

{ lib, stdenv, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec {
version = "9.1.1";
pname = "oxipng";
src = fetchCrate {
inherit version pname;
hash = "sha256-I+1yQQEzhGApvHxPM8W1wySQtDglGp3V4vkwoTd92EU=";
};
cargoHash = "sha256-miXrQVFahz9WYRCduSF5+RSY4j/XNEt8lnSuOohBUFU=";
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
meta = {
homepage = "https://github.com/shssoichiro/oxipng";
description = "Multithreaded lossless PNG compression optimizer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dywedir ];
mainProgram = "oxipng";
};
}