depot/third_party/nixpkgs/pkgs/by-name/gi/gifsicle/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

33 lines
914 B
Nix

{ lib, stdenv, fetchurl, xorgproto, libXt, libX11
, gifview ? false
, static ? stdenv.hostPlatform.isStatic
}:
stdenv.mkDerivation rec {
pname = "gifsicle";
version = "1.95";
src = fetchurl {
url = "https://www.lcdf.org/gifsicle/${pname}-${version}.tar.gz";
sha256 = "sha256-snEWRwCf0qExMPO+FgUy7UZTjnYr/A8CDepQYYp9yVA=";
};
buildInputs = lib.optionals gifview [ xorgproto libXt libX11 ];
configureFlags = lib.optional (!gifview) "--disable-gifview";
LDFLAGS = lib.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/";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ zimbatm ];
};
}