1 { lib, stdenv, fetchFromGitHub, gtk3, pkg-config }:
3 stdenv.mkDerivation rec {
4 pname = "pngoptimizer";
7 src = fetchFromGitHub {
8 owner = "hadrien-psydk";
11 sha256 = "1hbgf91vzx46grslfdx86smdvm6gs6lq9hpa3bax9xfbsknxi0i7";
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ gtk3 ];
18 makeFlags = [ "CONFIG=release" "DESTDIR=$(out)" ];
21 mv $out/usr/bin $out/bin
22 mv $out/usr/share $out/share
27 homepage = "https://psydk.org/pngoptimizer";
28 description = "PNG optimizer and converter";
29 # https://github.com/hadrien-psydk/pngoptimizer#license-information
30 license = with licenses; [ gpl2Only lgpl21Only zlib ];
31 maintainers = with maintainers; [ smitop ];
32 platforms = with platforms; linux;