2018-02-12 01:14:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2018-12-02 09:13:33 +00:00
|
|
|
version = "2.1.8";
|
2018-02-12 01:14:02 +00:00
|
|
|
name = "oxipng-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shssoichiro";
|
|
|
|
repo = "oxipng";
|
|
|
|
rev = "v${version}";
|
2018-12-02 09:13:33 +00:00
|
|
|
sha256 = "18ld65vm58s6x918g6bhfkrg7lw2lca8daidv88ff14wm5khjvik";
|
2018-02-12 01:14:02 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 09:13:33 +00:00
|
|
|
cargoSha256 = "034i8hgi0zgv085bimlja1hl3nd096rqpi167pw6rda5aj18c625";
|
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 15:20:38 +01:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2018-02-12 01:14:02 +00:00
|
|
|
platforms = platforms.all;
|
2018-08-05 15:20:38 +01: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 15:20:38 +01:00
|
|
|
broken = stdenv.isAarch64;
|
2018-02-12 01:14:02 +00:00
|
|
|
};
|
|
|
|
}
|