nixpkgs-suyu/pkgs/tools/graphics/gifsicle/default.nix
Ryan Mulligan 8e411e491c gifsicle: 1.90 -> 1.91 (#36536)
Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifsicle -h` got 0 exit code
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifsicle --help` got 0 exit code
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifsicle --version` and found version 1.91
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifdiff -h` got 0 exit code
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifdiff --help` got 0 exit code
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifdiff -v` and found version 1.91
- ran `/nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91/bin/gifdiff --version` and found version 1.91
- found 1.91 with grep in /nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91
- found 1.91 in filename of file in /nix/store/7852k36z8l2vfsxm3ylgm0la1ggl9c8w-gifsicle-1.91
2018-03-08 22:02:45 +00:00

33 lines
902 B
Nix

{ stdenv, fetchurl, xproto, libXt, libX11, gifview ? false, static ? false }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "gifsicle-${version}";
version = "1.91";
src = fetchurl {
url = "http://www.lcdf.org/gifsicle/${name}.tar.gz";
sha256 = "00586z1yz86qcblgmf16yly39n4lkjrscl52hvfxqk14m81fckha";
};
buildInputs = optional gifview [ xproto libXt libX11 ];
configureFlags = []
++ optional (!gifview) [ "--disable-gifview" ];
LDFLAGS = optional 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 = stdenv.lib.licenses.gpl2;
platforms = platforms.all;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu zimbatm ];
};
}