2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, libpng, fetchFromGitHub, pkg-config }:
|
2017-07-02 12:01:18 +01:00
|
|
|
let
|
|
|
|
version = "1.0.1";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "guetzli";
|
|
|
|
inherit version;
|
2017-07-02 12:01:18 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "guetzli";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1wy9wfvyradp0aigfv8yijvj0dgb5kpq2yf2xki15f605jc1r5dm";
|
|
|
|
};
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-07-02 12:01:18 +01:00
|
|
|
buildInputs = [ libpng ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install bin/Release/guetzli $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Perceptual JPEG encoder";
|
|
|
|
longDescription = "Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/google/guetzli";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.x86_64;
|
|
|
|
maintainers = [ lib.maintainers.seppeljordan ];
|
2017-07-02 12:01:18 +01:00
|
|
|
};
|
|
|
|
}
|