@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchFromGitHub, pkgconfig, libtool, autoconf, automake
2+, libjpeg, libexif
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "epeg-0.9.1.042"; # version taken from configure.ac
7+
8+ src = fetchFromGitHub {
9+ owner = "mattes";
10+ repo = "epeg";
11+ rev = "248ae9fc3f1d6d06e6062a1f7bf5df77d4f7de9b";
12+ sha256 = "14ad33w3pxrg2yfc2xzyvwyvjirwy2d00889dswisq8b84cmxfia";
13+ };
14+
15+ enableParallelBuilding = true;
16+
17+ nativeBuildInputs = [ pkgconfig libtool autoconf automake ];
18+
19+ propagatedBuildInputs = [ libjpeg libexif ];
20+
21+ preConfigure = ''
22+ ./autogen.sh
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ homepage = https://github.com/mattes/epeg;
27+ description = "Insanely fast JPEG/ JPG thumbnail scaling";
28+ platforms = platforms.linux ++ platforms.darwin;
29+ maintainers = with maintainers; [ nh2 ];
30+ };
31+}