2018-02-11 17:14:02 -08:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-08-11 02:56:31 -07:00
|
|
|
version = "3.0.1";
|
2019-03-26 17:30:42 -07:00
|
|
|
pname = "oxipng";
|
2018-02-11 17:14:02 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shssoichiro";
|
2019-03-26 17:30:42 -07:00
|
|
|
repo = pname;
|
2018-02-11 17:14:02 -08:00
|
|
|
rev = "v${version}";
|
2020-08-11 02:56:31 -07:00
|
|
|
sha256 = "11lncwxksm7aqczy9ay1qnba2wmgfsirhgrl6vv1jlgj41b7mzi5";
|
2018-02-11 17:14:02 -08:00
|
|
|
};
|
|
|
|
|
2020-08-11 02:56:31 -07:00
|
|
|
cargoSha256 = "0lalb981qzlnmqfg170mh6lnc0qlzb94wc39mf859g2jvxk3pkrl";
|
2019-02-02 00:39:30 -08:00
|
|
|
|
|
|
|
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
|
|
|
|
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
|
2018-02-11 17:14:02 -08:00
|
|
|
|
2019-10-16 10:06:11 -07:00
|
|
|
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
|
|
|
|
|
2018-02-11 17:14:02 -08:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/shssoichiro/oxipng";
|
2018-11-21 13:19:24 -08:00
|
|
|
description = "A multithreaded lossless PNG compression optimizer";
|
2018-02-11 17:14:02 -08:00
|
|
|
license = licenses.mit;
|
2018-08-05 07:20:38 -07:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2018-02-11 17:14:02 -08:00
|
|
|
};
|
|
|
|
}
|