nixpkgs/pkgs/tools/graphics/oxipng/default.nix

27 lines
766 B
Nix
Raw Normal View History

2018-02-11 17:14:02 -08:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-07-08 14:56:58 -07:00
version = "2.2.2";
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}";
2019-07-08 14:56:58 -07:00
sha256 = "07amczmyqs09zfp564nk8jy1n65y8pvk89qq6jv5k8npai8zvixn";
2018-02-11 17:14:02 -08:00
};
2019-07-08 14:56:58 -07:00
cargoSha256 = "1fkghjzsyg27n6k2yki0yhbdmmb1whgy5fjpydpjm4yv448nhhbm";
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
meta = with stdenv.lib; {
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
platforms = platforms.all;
};
}