summary refs log tree commit diff
path: root/pkgs/applications/graphics/epeg/default.nix
blob: ef694dec6527fad6b703af72b4b7cf8dcb30b0be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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 ];
  };
}