2022-05-28 13:22:26 +00:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config }:
|
2019-03-03 16:02:27 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "gifski";
|
2023-03-19 02:50:50 +00:00
|
|
|
version = "1.10.3";
|
2019-03-03 16:02:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ImageOptim";
|
|
|
|
repo = "gifski";
|
|
|
|
rev = version;
|
2023-03-19 02:50:50 +00:00
|
|
|
sha256 = "sha256-P4t16rCKsL6FwDVXDC2XkgUGcAlWCPt1iXoBmhDZRzk=";
|
2019-03-03 16:02:27 +00:00
|
|
|
};
|
|
|
|
|
2023-03-19 02:50:50 +00:00
|
|
|
cargoHash = "sha256-IAaaR4DWKnCd9IrqIR3v2dEv4IVEoBwBEJErqLRaVmA=";
|
2022-07-30 04:20:00 +00:00
|
|
|
|
|
|
|
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;
|
2019-03-03 16:02:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-03 16:02:27 +00:00
|
|
|
description = "GIF encoder based on libimagequant (pngquant)";
|
2020-02-21 23:59:26 +00:00
|
|
|
homepage = "https://gif.ski/";
|
2019-03-03 16:02:27 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|