2018-02-12 02:14:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-05-19 23:17:21 +02:00
|
|
|
version = "3.0.0";
|
2019-03-27 01:30:42 +01:00
|
|
|
pname = "oxipng";
|
2018-02-12 02:14:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shssoichiro";
|
2019-03-27 01:30:42 +01:00
|
|
|
repo = pname;
|
2018-02-12 02:14:02 +01:00
|
|
|
rev = "v${version}";
|
2020-05-19 23:17:21 +02:00
|
|
|
sha256 = "1k6q5xdfbw4vv4mvms32fhih7k1gpjj98nzrd171ig1vv3gpwwpg";
|
2018-02-12 02:14:02 +01:00
|
|
|
};
|
|
|
|
|
2020-05-19 23:17:21 +02:00
|
|
|
cargoSha256 = "19h3fwc5s2yblah5lnsm0f4m618p2bkdz2qz47kfi6jdvk89j8z7";
|
2019-02-02 09:39:30 +01:00
|
|
|
|
|
|
|
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
|
|
|
|
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
|
2018-02-12 02:14:02 +01:00
|
|
|
|
2019-10-16 19:06:11 +02:00
|
|
|
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
|
|
|
|
|
2018-02-12 02:14:02 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/shssoichiro/oxipng";
|
2018-11-21 22:19:24 +01:00
|
|
|
description = "A multithreaded lossless PNG compression optimizer";
|
2018-02-12 02:14:02 +01:00
|
|
|
license = licenses.mit;
|
2018-08-05 16:20:38 +02:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2018-02-12 02:14:02 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|