Merge pull request #77710 from emilazy/add-imageworsener
imageworsener: init at 1.3.3
This commit is contained in:
commit
987d6c216f
2 changed files with 43 additions and 0 deletions
41
pkgs/tools/graphics/imageworsener/default.nix
Normal file
41
pkgs/tools/graphics/imageworsener/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv
|
||||
, fetchurl
|
||||
, zlib
|
||||
, libpng
|
||||
, libjpeg
|
||||
, libwebp
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "imageworsener";
|
||||
version = "1.3.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://entropymine.com/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "099ymaqk7gj0plmdx7fxabbdx2n03d25r00ly0vf6cx37mgnwjvw";
|
||||
};
|
||||
|
||||
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 stdenv.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 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -951,6 +951,8 @@ in
|
|||
|
||||
ili2c = callPackage ../tools/misc/ili2c { };
|
||||
|
||||
imageworsener = callPackage ../tools/graphics/imageworsener { };
|
||||
|
||||
imgpatchtools = callPackage ../development/mobile/imgpatchtools { };
|
||||
|
||||
ipgrep = callPackage ../tools/networking/ipgrep { };
|
||||
|
|
Loading…
Reference in a new issue