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

27 lines
715 B
Nix
Raw Normal View History

2018-02-12 02:14:02 +01:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2018-08-05 16:20:38 +02:00
version = "2.1.0";
2018-02-12 02:14:02 +01:00
name = "oxipng-${version}";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = "oxipng";
rev = "v${version}";
2018-08-05 16:20:38 +02:00
sha256 = "13rzkfb025y4i9dj66fgc74whgs90gyw861dccsj16cpfl6kh5z0";
2018-02-12 02:14:02 +01:00
};
2018-08-05 16:20:38 +02:00
cargoSha256 = "0l6ad8rnifd5hkv6x2cr0frdddsfwm1xd1v56imlglsjkgz56cva";
2018-02-12 02:14:02 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/shssoichiro/oxipng;
description = "A lossless PNG compression optimizer";
license = licenses.mit;
2018-08-05 16:20:38 +02:00
maintainers = with maintainers; [ dywedir ];
2018-02-12 02:14:02 +01:00
platforms = platforms.all;
2018-08-05 16:20:38 +02:00
# macro is_arm_feature_detected! is unstable
broken = stdenv.isAarch64;
2018-02-12 02:14:02 +01:00
};
}