c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
31 lines
858 B
Nix
31 lines
858 B
Nix
{ lib, stdenv, libpng, fetchFromGitHub, pkg-config }:
|
|
let
|
|
version = "1.0.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "guetzli";
|
|
inherit version;
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "guetzli";
|
|
rev = "v${version}";
|
|
sha256 = "1wy9wfvyradp0aigfv8yijvj0dgb5kpq2yf2xki15f605jc1r5dm";
|
|
};
|
|
nativeBuildInputs = [ pkg-config ];
|
|
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.";
|
|
homepage = "https://github.com/google/guetzli";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.x86_64;
|
|
maintainers = [ lib.maintainers.seppeljordan ];
|
|
mainProgram = "guetzli";
|
|
};
|
|
}
|