about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-05 00:33:50 -0500
committerGitHub <noreply@github.com>2018-05-05 00:33:50 -0500
commit30caa09e51142e98c43f6288f55e1776fd5b625e (patch)
tree241a61c55f9d2f9478c4fc34eada16b1db2ec126 /pkgs/applications/graphics
parent9f1da665876cdd4f68750a2241d2bd5fc203f275 (diff)
parentc7b21cd1911f880630102996b54956d19c974295 (diff)
downloadnixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar.gz
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar.bz2
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar.lz
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar.xz
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.tar.zst
nixlib-30caa09e51142e98c43f6288f55e1776fd5b625e.zip
Merge pull request #39881 from nh2/epeg
Add epeg
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/epeg/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/epeg/default.nix b/pkgs/applications/graphics/epeg/default.nix
new file mode 100644
index 000000000000..02528a43e31b
--- /dev/null
+++ b/pkgs/applications/graphics/epeg/default.nix
@@ -0,0 +1,31 @@
+{ lib, stdenv, fetchFromGitHub, pkgconfig, libtool, autoconf, automake
+, libjpeg, libexif
+}:
+
+stdenv.mkDerivation rec {
+  name = "epeg-0.9.1.042"; # version taken from configure.ac
+
+  src = fetchFromGitHub {
+    owner = "mattes";
+    repo = "epeg";
+    rev = "248ae9fc3f1d6d06e6062a1f7bf5df77d4f7de9b";
+    sha256 = "14ad33w3pxrg2yfc2xzyvwyvjirwy2d00889dswisq8b84cmxfia";
+  };
+
+  enableParallelBuilding = true;
+
+  nativeBuildInputs = [ pkgconfig libtool autoconf automake ];
+
+  propagatedBuildInputs = [ libjpeg libexif ];
+
+  preConfigure = ''
+    ./autogen.sh
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/mattes/epeg;
+    description = "Insanely fast JPEG/ JPG thumbnail scaling";
+    platforms = platforms.linux ++ platforms.darwin;
+    maintainers = with maintainers; [ nh2 ];
+  };
+}