summary refs log tree commit diff
path: root/pkgs/applications/misc/djvulibre/default.nix
blob: 59dfd2d891e74e8855276e72ba8769a7bc66e884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchurl, libjpeg, libtiff, librsvg, libintlOrEmpty }:

stdenv.mkDerivation rec {
  name = "djvulibre-3.5.25.3";

  src = fetchurl {
    url = "mirror://sourceforge/djvu/${name}.tar.gz";
    sha256 = "1q5i5ha4zmj2ahjfhi8cv1rah80vm43m9ads46ji38rgvpb7x3c9";
  };

  buildInputs = [ libjpeg libtiff librsvg ] ++ libintlOrEmpty;

  NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";

  meta = {
    description = "A library and viewer for the DJVU file format for scanned images";
    homepage = http://djvu.sourceforge.net;
    maintainers = [ stdenv.lib.maintainers.urkud ];
    platforms = stdenv.lib.platforms.all;
  };
}