guetzli: init at 1.0.1 (#26595)

* guetzli: init at 1.0.1
* guetzli: move pkgconfig from buildInputs to nativeBuildInputs
* guetzli: use fetchFromGitHub instead of fetchgit

authored by

Sebastian Jordan and committed by
Pascal Wittmann
b3004725 2dc59908

+31
+29
pkgs/applications/graphics/guetzli/default.nix
··· 1 + { stdenv, libpng, fetchFromGitHub, pkgconfig }: 2 + let 3 + version = "1.0.1"; 4 + in 5 + stdenv.mkDerivation { 6 + name = "guetzli-${version}"; 7 + src = fetchFromGitHub { 8 + owner = "google"; 9 + repo = "guetzli"; 10 + rev = "v${version}"; 11 + sha256 = "1wy9wfvyradp0aigfv8yijvj0dgb5kpq2yf2xki15f605jc1r5dm"; 12 + }; 13 + nativeBuildInputs = [ pkgconfig ]; 14 + buildInputs = [ libpng ]; 15 + 16 + installPhase = '' 17 + mkdir -p $out/bin 18 + install bin/Release/guetzli $out/bin/ 19 + ''; 20 + 21 + meta = { 22 + description = "Perceptual JPEG encoder"; 23 + longDescription = "Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality."; 24 + homepage = "https://github.com/google/guetzli"; 25 + license = stdenv.lib.licenses.asl20; 26 + platforms = stdenv.lib.platforms.x86_64; 27 + maintainers = [ stdenv.lib.maintainers.seppeljordan ]; 28 + }; 29 + }
+2
pkgs/top-level/all-packages.nix
··· 18441 18441 18442 18442 greybird = callPackage ../misc/themes/greybird { }; 18443 18443 18444 + guetzli = callPackage ../applications/graphics/guetzli { }; 18445 + 18444 18446 gxemul = callPackage ../misc/emulators/gxemul { }; 18445 18447 18446 18448 hatari = callPackage ../misc/emulators/hatari { };