1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/tools/graphics/oxipng/default.nix

32 lines
903 B
Nix
Raw Normal View History

2018-02-12 01:14:02 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-10-16 18:06:11 +01:00
version = "2.3.0";
2019-03-27 00:30:42 +00:00
pname = "oxipng";
2018-02-12 01:14:02 +00:00
src = fetchFromGitHub {
owner = "shssoichiro";
2019-03-27 00:30:42 +00:00
repo = pname;
2018-02-12 01:14:02 +00:00
rev = "v${version}";
2019-10-16 18:06:11 +01:00
sha256 = "1cx026g1gdvk4qmnrbsmg46y2lizx0wqny25hhdjnh9pwzjc77mh";
2018-02-12 01:14:02 +00:00
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2019-10-16 18:06:11 +01:00
cargoSha256 = "1213mg7xhv9ymgm0xqdai5wgammz9n07whw2d42m83208k94zss3";
2019-02-02 08:39:30 +00:00
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
2018-02-12 01:14:02 +00:00
2019-10-16 18:06:11 +01:00
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;
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;
};
}