Merge pull request #183958 from marsam/update-gifski

gifski: 1.6.4 -> 1.7.0
This commit is contained in:
Mario Rodas 2022-07-30 13:34:22 -05:00 committed by GitHub
commit 82c86c38e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 5 deletions

View file

@ -0,0 +1,12 @@
diff --git c/Cargo.lock i/Cargo.lock
index 9b8929c..8e1e923 100644
--- c/Cargo.lock
+++ i/Cargo.lock
@@ -303,6 +303,7 @@ dependencies = [
"lodepng",
"loop9",
"natord",
+ "num-traits",
"pbr",
"quick-error",
"resize",

View file

@ -2,21 +2,25 @@
rustPlatform.buildRustPackage rec {
pname = "gifski";
version = "1.6.4";
version = "1.7.0";
src = fetchFromGitHub {
owner = "ImageOptim";
repo = "gifski";
rev = version;
sha256 = "sha256-TD6MSZfvJ8fLJxvDh4fc4Dij5t4WSH2/i9Jz7eBmlME=";
sha256 = "sha256-cycgrQ1f0x1tPziQCRyqWinG8v0SVYW3LpFsxhZpQhE=";
};
cargoSha256 = "sha256-kG0svhytDzm2dc//8WTFm1sI3WS0Ny9yhYTSMoXnt8I=";
cargoPatches = [ ./cargo.lock-fix-missing-dependency.patch ];
nativeBuildInputs = [ pkg-config ];
cargoSha256 = "sha256-qJ+awu+Ga3fdxaDKdSzCcdyyuKCheb87qT7tX1dL1zo=";
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
# error: the crate `gifski` is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind`
doCheck = !stdenv.isDarwin;
meta = with lib; {
broken = stdenv.isDarwin;
description = "GIF encoder based on libimagequant (pngquant)";
homepage = "https://gif.ski/";
license = licenses.agpl3;