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

27 lines
779 B
Nix
Raw Normal View History

2018-02-11 17:14:02 -08:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-02-02 00:39:30 -08:00
version = "2.2.0";
2018-02-11 17:14:02 -08:00
name = "oxipng-${version}";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = "oxipng";
rev = "v${version}";
2019-02-02 00:39:30 -08:00
sha256 = "00ys1dy8r1g84j04w50qcjas0qnfw4vphazvbfasd9q2b1p5z69l";
2018-02-11 17:14:02 -08:00
};
2019-02-02 00:39:30 -08:00
cargoSha256 = "125r3jmgwcq8qddm8hjpyzaam96kkifaxixksyaw2iqk9xq0nrpm";
# 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;
};
}