2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, xorgproto, libXt, libX11
|
2021-01-05 17:05:55 +00:00
|
|
|
, gifview ? false
|
|
|
|
, static ? stdenv.hostPlatform.isStatic
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gifsicle";
|
2021-07-04 02:40:35 +00:00
|
|
|
version = "1.93";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.lcdf.org/gifsicle/${pname}-${version}.tar.gz";
|
2021-07-04 02:40:35 +00:00
|
|
|
sha256 = "sha256-kvZweXMr9MHaCH5q4JBSBYRuWsd3ulyqZtEqc6qUNEc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = optionals gifview [ xorgproto libXt libX11 ];
|
|
|
|
|
|
|
|
configureFlags = optional (!gifview) "--disable-gifview";
|
|
|
|
|
|
|
|
LDFLAGS = optionalString static "-static";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
./src/gifsicle --info logo.gif
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command-line tool for creating, editing, and getting information about GIF images and animations";
|
|
|
|
homepage = "https://www.lcdf.org/gifsicle/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|