nixpkgs/pkgs/applications/graphics/apngasm/2.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

36 lines
831 B
Nix

{ lib, stdenv, fetchzip, libpng, zlib, zopfli }:
stdenv.mkDerivation rec {
pname = "apngasm";
version = "2.91";
src = fetchzip {
url = "mirror://sourceforge/${pname}/${pname}-${version}-src.zip";
stripRoot = false;
sha256 = "0qhljqql159xkn1l83vz0q8wvzr7rjz4jnhiy0zn36pgvacg0zn1";
};
buildInputs = [ libpng zlib zopfli ];
postPatch = ''
rm -rf libpng zlib zopfli
'';
NIX_CFLAGS_LINK = "-lzopfli";
installPhase = ''
install -Dt $out/bin apngasm
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Create highly optimized Animated PNG files from PNG/TGA images";
mainProgram = "apngasm";
homepage = "https://apngasm.sourceforge.net/";
license = licenses.zlib;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}