2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-01-15 00:05:30 +00:00
|
|
|
, fetchurl
|
|
|
|
, zlib
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, libwebp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "imageworsener";
|
2022-11-28 15:56:38 +00:00
|
|
|
version = "1.3.5";
|
2020-01-15 00:05:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://entropymine.com/${pname}/${pname}-${version}.tar.gz";
|
2022-11-28 15:56:38 +00:00
|
|
|
sha256 = "sha256-p/u2XFreZ9nrwy5SxYmIpPmGuswAjJAh/ja1mEZtXI0=";
|
2020-01-15 00:05:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-15 00:05:30 +00:00
|
|
|
description = "A raster image scaling and processing utility";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://entropymine.com/imageworsener/";
|
2020-01-15 00:05:30 +00:00
|
|
|
changelog = "https://github.com/jsummers/${pname}/blob/${version}/changelog.txt";
|
|
|
|
license = licenses.mit;
|
2021-12-08 18:55:41 +00:00
|
|
|
maintainers = with maintainers; [ emily smitop ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "imagew";
|
2020-01-15 00:05:30 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|