1 { lib, stdenv, fetchurl, xorgproto, libXt, libX11
3 , static ? stdenv.hostPlatform.isStatic
6 stdenv.mkDerivation rec {
11 url = "https://www.lcdf.org/gifsicle/gifsicle-${version}.tar.gz";
12 hash = "sha256-snEWRwCf0qExMPO+FgUy7UZTjnYr/A8CDepQYYp9yVA=";
15 buildInputs = lib.optionals gifview [ xorgproto libXt libX11 ];
17 configureFlags = lib.optional (!gifview) "--disable-gifview";
19 LDFLAGS = lib.optionalString static "-static";
23 ./src/gifsicle --info logo.gif
27 description = "Command-line tool for creating, editing, and getting information about GIF images and animations";
28 homepage = "https://www.lcdf.org/gifsicle/";
29 license = lib.licenses.gpl2Only;
30 platforms = lib.platforms.all;
31 maintainers = with lib.maintainers; [ zimbatm ];