3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/guetzli/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

31 lines
829 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 ];
};
}