Skip to content

Commit b300472

Browse files
seppeljordanpSub
authored andcommittedJul 2, 2017
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
1 parent 2dc5990 commit b300472

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -18441,6 +18441,8 @@ with pkgs;
1844118441

1844218442
greybird = callPackage ../misc/themes/greybird { };
1844318443

18444+
guetzli = callPackage ../applications/graphics/guetzli { };
18445+
1844418446
gxemul = callPackage ../misc/emulators/gxemul { };
1844518447

1844618448
hatari = callPackage ../misc/emulators/hatari { };

0 commit comments

Comments
 (0)
Please sign in to comment.