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

27 lines
770 B
Nix
Raw Normal View History

2018-02-12 01:14:02 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2018-11-21 21:19:24 +00:00
version = "2.1.6";
2018-02-12 01:14:02 +00:00
name = "oxipng-${version}";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = "oxipng";
rev = "v${version}";
2018-11-21 21:19:24 +00:00
sha256 = "0n3v2dxybfkf07hb4p2hbhhkwx907b85wzj8wa4whwil89igyrdm";
2018-02-12 01:14:02 +00:00
};
2018-11-21 21:19:24 +00:00
cargoSha256 = "1ycacwhwbn27i81jpp55m1446b9a50knlqv0kzkjcv8yf27213y9";
2018-02-12 01:14:02 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/shssoichiro/oxipng;
2018-11-21 21:19:24 +00:00
description = "A multithreaded lossless PNG compression optimizer";
2018-02-12 01:14:02 +00:00
license = licenses.mit;
2018-08-05 14:20:38 +00:00
maintainers = with maintainers; [ dywedir ];
2018-02-12 01:14:02 +00:00
platforms = platforms.all;
2018-08-05 14:20:38 +00:00
2018-11-21 21:19:24 +00:00
# Needs newer/unstable rust: error[E0658]: macro is_arm_feature_detected! is unstable
2018-08-05 14:20:38 +00:00
broken = stdenv.isAarch64;
2018-02-12 01:14:02 +00:00
};
}