mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
8e411e491c
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
34 lines
902 B
Nix
34 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 ];
|
|
};
|
|
}
|