1 { lib, stdenv, fetchFromGitHub, pkg-config, libpng, zlib }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2020-11-25";
7 src = fetchFromGitHub {
10 rev = "559f09437e1c797a1eaf08dfdcddd9b082f0e09c";
11 sha256 = "sha256-dqrrzbLu4znyWOlTDIf56O3efxszetiP+CdFiy2PBd4=";
14 nativeBuildInputs = [ pkg-config ];
23 install -D ./src/pngloss $out/bin/pngloss
29 description = "Lossy compression of PNG images";
30 homepage = "https://github.com/foobaz/pngloss";
31 license = licenses.mit;
32 platforms = platforms.all;
33 maintainers = with maintainers; [ _2gn ];
34 mainProgram = "pngloss";