oxipng: 3.0.1 -> 4.0.0

This commit is contained in:
Vladyslav M 2020-11-11 22:22:12 +02:00 committed by Jonathan Ringer
parent 21bc6aaf19
commit a52b343b39
1 changed files with 6 additions and 11 deletions

View File

@ -1,20 +1,15 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec {
version = "3.0.1";
version = "4.0.0";
pname = "oxipng";
src = fetchFromGitHub {
owner = "shssoichiro";
repo = pname;
rev = "v${version}";
sha256 = "11lncwxksm7aqczy9ay1qnba2wmgfsirhgrl6vv1jlgj41b7mzi5";
src = fetchCrate {
inherit version pname;
sha256 = "0p9h006l75ci324lbcx496732pb77srcd46g6dnfw3mcrg33cspc";
};
cargoSha256 = "0lalb981qzlnmqfg170mh6lnc0qlzb94wc39mf859g2jvxk3pkrl";
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
cargoSha256 = "1r2zw7p95abxqc31b5gswdyhm4msxsiml34dsh9x8zydhqnwy17j";
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;