git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitb300472568f296495b411a7f9d55e14d613b2aa9 authorSebastian Jordan <sebastian.jordan.mail@googlemail.com> dateSun 2 Jul 2017, 13:01 (9 years ago) parent2dc5990
2 files changed+31
pkgs/applications/graphics/guetzli/default.nix+29 pkgs/top-level/all-packages.nix+2
pkgs/applications/graphics/guetzli/default.nixnew file+29
@@ -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
@@ -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 { };