about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorSebastian Jordan <sebastian.jordan.mail@googlemail.com>2017-07-02 13:01:18 +0200
committerPascal Wittmann <PascalWittmann@gmx.net>2017-07-02 13:01:18 +0200
commitb300472568f296495b411a7f9d55e14d613b2aa9 (patch)
treee5e88b917b20054c459a5312af92385aa3c77339 /pkgs/applications/graphics
parent2dc599083c5a766fff61885ec2c98521510b02ae (diff)
downloadnixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar.gz
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar.bz2
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar.lz
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar.xz
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.tar.zst
nixlib-b300472568f296495b411a7f9d55e14d613b2aa9.zip
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
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/guetzli/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/guetzli/default.nix b/pkgs/applications/graphics/guetzli/default.nix
new file mode 100644
index 000000000000..c96ddc987954
--- /dev/null
+++ b/pkgs/applications/graphics/guetzli/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, libpng, fetchFromGitHub, pkgconfig }:
+let
+  version = "1.0.1";
+in
+stdenv.mkDerivation {
+  name = "guetzli-${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 ];
+  };
+}