From 9fb77128ee724c7a7d2797f2d3ad15c2bba5fb1c Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 15 Jan 2020 00:05:30 +0000 Subject: [PATCH] imageworsener: init at 1.3.3 --- pkgs/tools/graphics/imageworsener/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/tools/graphics/imageworsener/default.nix diff --git a/pkgs/tools/graphics/imageworsener/default.nix b/pkgs/tools/graphics/imageworsener/default.nix new file mode 100644 index 000000000000..7c3d89317001 --- /dev/null +++ b/pkgs/tools/graphics/imageworsener/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef9ebc140504..432ca4019d42 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -930,6 +930,8 @@ in ili2c = callPackage ../tools/misc/ili2c { }; + imageworsener = callPackage ../tools/graphics/imageworsener { }; + imgpatchtools = callPackage ../development/mobile/imgpatchtools { }; ipgrep = callPackage ../tools/networking/ipgrep { };