2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchCrate, rustPlatform }:
|
2018-02-12 01:14:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-01-20 19:32:25 +00:00
|
|
|
version = "4.0.3";
|
2019-03-27 00:30:42 +00:00
|
|
|
pname = "oxipng";
|
2018-02-12 01:14:02 +00:00
|
|
|
|
2020-11-11 20:22:12 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2021-01-20 19:32:25 +00:00
|
|
|
sha256 = "sha256-lvVgoAZMIqmbS6yMul9Hf9PtneEVy+jDs3kU1jSBL2w=";
|
2018-02-12 01:14:02 +00:00
|
|
|
};
|
|
|
|
|
2021-01-20 19:32:25 +00:00
|
|
|
cargoSha256 = "sha256-v0A8/b/OPAtnaNlMX7QNXTGGH6kg67WBo/2ChOPDZdQ=";
|
2018-02-12 01:14:02 +00:00
|
|
|
|
2019-10-16 17:06:11 +00:00
|
|
|
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/shssoichiro/oxipng";
|
2018-11-21 21:19:24 +00:00
|
|
|
description = "A multithreaded lossless PNG compression optimizer";
|
2018-02-12 01:14:02 +00:00
|
|
|
license = licenses.mit;
|
2018-08-05 14:20:38 +00:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2018-02-12 01:14:02 +00:00
|
|
|
};
|
|
|
|
}
|