nixpkgs-suyu/pkgs/tools/graphics/oxipng/default.nix
2020-05-19 21:17:21 +00:00

28 lines
820 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
version = "3.0.0";
pname = "oxipng";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = pname;
rev = "v${version}";
sha256 = "1k6q5xdfbw4vv4mvms32fhih7k1gpjj98nzrd171ig1vv3gpwwpg";
};
cargoSha256 = "19h3fwc5s2yblah5lnsm0f4m618p2bkdz2qz47kfi6jdvk89j8z7";
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
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;
};
}