depot/third_party/nixpkgs/pkgs/tools/graphics/imageworsener/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

42 lines
974 B
Nix

{ lib, stdenv
, fetchurl
, zlib
, libpng
, libjpeg
, libwebp
}:
stdenv.mkDerivation rec {
pname = "imageworsener";
version = "1.3.4";
src = fetchurl {
url = "https://entropymine.com/${pname}/${pname}-${version}.tar.gz";
sha256 = "1dhjhlfrdng50dxxd306adzm54ir62pz99h4v0yi6rg56nxv5q5s";
};
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 = "A 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;
};
}