Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, gtk3, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "pngoptimizer"; 5 version = "2.7"; 6 7 src = fetchFromGitHub { 8 owner = "hadrien-psydk"; 9 repo = "pngoptimizer"; 10 rev = "v${version}"; 11 sha256 = "1hbgf91vzx46grslfdx86smdvm6gs6lq9hpa3bax9xfbsknxi0i7"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 buildInputs = [ gtk3 ]; 17 18 makeFlags = [ "CONFIG=release" "DESTDIR=$(out)" ]; 19 20 postInstall = '' 21 mv $out/usr/bin $out/bin 22 mv $out/usr/share $out/share 23 rmdir $out/usr 24 ''; 25 26 meta = with lib; { 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; 33 }; 34}