nixpkgs/pkgs/tools/graphics/gifski/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
812 B
Nix
Raw Normal View History

{ 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=";
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
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 ];
};
}