commit
5c986a45ce
|
@ -1,17 +1,20 @@
|
||||||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
version = "2.1.8";
|
version = "2.2.0";
|
||||||
name = "oxipng-${version}";
|
name = "oxipng-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "shssoichiro";
|
owner = "shssoichiro";
|
||||||
repo = "oxipng";
|
repo = "oxipng";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "18ld65vm58s6x918g6bhfkrg7lw2lca8daidv88ff14wm5khjvik";
|
sha256 = "00ys1dy8r1g84j04w50qcjas0qnfw4vphazvbfasd9q2b1p5z69l";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "034i8hgi0zgv085bimlja1hl3nd096rqpi167pw6rda5aj18c625";
|
cargoSha256 = "125r3jmgwcq8qddm8hjpyzaam96kkifaxixksyaw2iqk9xq0nrpm";
|
||||||
|
|
||||||
|
# https://crates.io/crates/cloudflare-zlib#arm-vs-nightly-rust
|
||||||
|
cargoBuildFlags = [ "--features=cloudflare-zlib/arm-always" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/shssoichiro/oxipng;
|
homepage = https://github.com/shssoichiro/oxipng;
|
||||||
|
@ -19,8 +22,5 @@ rustPlatform.buildRustPackage rec {
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ dywedir ];
|
maintainers = with maintainers; [ dywedir ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
||||||
# Needs newer/unstable rust: error[E0658]: macro is_arm_feature_detected! is unstable
|
|
||||||
broken = stdenv.isAarch64;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue