nixpkgs/pkgs/tools/graphics/oxipng/default.nix
2019-02-02 10:39:30 +02:00

26 lines
779 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
version = "2.2.0";
name = "oxipng-${version}";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = "oxipng";
rev = "v${version}";
sha256 = "00ys1dy8r1g84j04w50qcjas0qnfw4vphazvbfasd9q2b1p5z69l";
};
cargoSha256 = "125r3jmgwcq8qddm8hjpyzaam96kkifaxixksyaw2iqk9xq0nrpm";
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
meta = with stdenv.lib; {
homepage = https://github.com/shssoichiro/oxipng;
description = "A multithreaded lossless PNG compression optimizer";
license = licenses.mit;
maintainers = with maintainers; [ dywedir ];
platforms = platforms.all;
};
}