Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 921 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gtk3, 6 pkg-config, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "pngoptimizer"; 11 version = "2.7"; 12 13 src = fetchFromGitHub { 14 owner = "hadrien-psydk"; 15 repo = "pngoptimizer"; 16 rev = "v${version}"; 17 sha256 = "1hbgf91vzx46grslfdx86smdvm6gs6lq9hpa3bax9xfbsknxi0i7"; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 22 buildInputs = [ gtk3 ]; 23 24 makeFlags = [ 25 "CONFIG=release" 26 "DESTDIR=$(out)" 27 ]; 28 29 postInstall = '' 30 mv $out/usr/bin $out/bin 31 mv $out/usr/share $out/share 32 rmdir $out/usr 33 ''; 34 35 meta = with lib; { 36 homepage = "https://psydk.org/pngoptimizer"; 37 description = "PNG optimizer and converter"; 38 # https://github.com/hadrien-psydk/pngoptimizer#license-information 39 license = with licenses; [ 40 gpl2Only 41 lgpl21Only 42 zlib 43 ]; 44 maintainers = with maintainers; [ smitop ]; 45 platforms = with platforms; linux; 46 }; 47}