depot/third_party/nixpkgs/pkgs/applications/graphics/guetzli/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
843 B
Nix

{ stdenv, libpng, fetchFromGitHub, pkgconfig }:
let
version = "1.0.1";
in
stdenv.mkDerivation {
pname = "guetzli";
inherit version;
src = fetchFromGitHub {
owner = "google";
repo = "guetzli";
rev = "v${version}";
sha256 = "1wy9wfvyradp0aigfv8yijvj0dgb5kpq2yf2xki15f605jc1r5dm";
};
nativeBuildInputs = [ pkgconfig ];
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 = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.x86_64;
maintainers = [ stdenv.lib.maintainers.seppeljordan ];
};
}