about summary refs log tree commit diff
path: root/pkgs/tools/graphics/gifski/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-07-30 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2022-07-30 04:20:00 +0000
commit3593043f4b5764977d3edbcec32ea544f7e94ee7 (patch)
treed9daf8b1f4c47ac82049079aff7f3047af02aecc /pkgs/tools/graphics/gifski/default.nix
parent0dced175d768c0049d4feb3cd4b14a503623203a (diff)
gifski: 1.6.4 -> 1.7.0
https://github.com/ImageOptim/gifski/releases/tag/1.7.0
Diffstat (limited to 'pkgs/tools/graphics/gifski/default.nix')
-rw-r--r--pkgs/tools/graphics/gifski/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/gifski/default.nix b/pkgs/tools/graphics/gifski/default.nix
index bf3cbf420b142..ffd60b5b77832 100644
--- a/pkgs/tools/graphics/gifski/default.nix
+++ b/pkgs/tools/graphics/gifski/default.nix
@@ -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;