1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/tools/graphics/gifski/default.nix
2022-08-30 11:51:10 +00:00

28 lines
813 B
Nix

{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config }:
rustPlatform.buildRustPackage rec {
pname = "gifski";
version = "1.7.2";
src = fetchFromGitHub {
owner = "ImageOptim";
repo = "gifski";
rev = version;
sha256 = "sha256-Hlowm+wtj3bJBGJd/JndOaGC6iSdab3sURUjzshqh+k=";
};
cargoSha256 = "sha256-Ir3u57nCBgzEuwaOzx8z71cxXmrIJLkURhuwFRoB2Xw=";
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; {
description = "GIF encoder based on libimagequant (pngquant)";
homepage = "https://gif.ski/";
license = licenses.agpl3;
maintainers = [ maintainers.marsam ];
};
}