2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchCrate, rustPlatform }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "9.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "oxipng";
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-uP4wLqL0c/dLiczumsq+Ad5ljNvi85RwoYS24fg8kFo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-LZ3YIosDpjDYVACWQsr/0XhgX4fyo8CyZG58WfLSzCs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/shssoichiro/oxipng";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multithreaded lossless PNG compression optimizer";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dywedir ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "oxipng";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|