blob: 42f984b8cc60badc6e4ac4e10aff205109076491 (
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
32
|
{ stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
stdenv.mkDerivation rec {
version = "0.9.13";
name = "pdf2djvu-${version}";
src = fetchurl {
url = "https://github.com/jwilk/pdf2djvu/releases/download/${version}/${name}.tar.xz";
sha256 = "0qscmfii1pvnb8g7kbl1rdiqyic6ybfiw4kwvy35qqi967c1daz0";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ djvulibre poppler fontconfig libjpeg ];
preConfigure = ''
sed -i 's#\$djvulibre_bin_path#${djvulibre.bin}/bin#g' configure
# Configure skips the failing check for usability of windres when it is nonempty.
unset WINDRES
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Creates djvu files from PDF files";
homepage = https://jwilk.net/software/pdf2djvu;
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
inherit version;
};
}
|