depot/third_party/nixpkgs/pkgs/tools/graphics/imageworsener/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
971 B
Nix

{ lib, stdenv
, fetchurl
, zlib
, libpng
, libjpeg
, libwebp
}:
stdenv.mkDerivation rec {
pname = "imageworsener";
version = "1.3.5";
src = fetchurl {
url = "https://entropymine.com/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-p/u2XFreZ9nrwy5SxYmIpPmGuswAjJAh/ja1mEZtXI0=";
};
postPatch = ''
patchShebangs tests/runtest
'';
postInstall = ''
mkdir -p $out/share/doc/imageworsener
cp readme.txt technical.txt $out/share/doc/imageworsener
'';
buildInputs = [ zlib libpng libjpeg libwebp ];
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
description = "Raster image scaling and processing utility";
homepage = "https://entropymine.com/imageworsener/";
changelog = "https://github.com/jsummers/${pname}/blob/${version}/changelog.txt";
license = licenses.mit;
maintainers = with maintainers; [ emily smitop ];
mainProgram = "imagew";
platforms = platforms.all;
};
}