18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 sha256 = "sha256-j4mYdmLZ56qTA1KbWBjBvyTyLaeuIITKYsALRIO7lj0=";
45 substituteInPlace private/autogen \
46 --replace /usr/share/gettext ${gettext}/share/gettext \
47 --replace /usr/share/libtool ${libtool}/share/libtool
49 substituteInPlace configure.ac \
50 --replace '$djvulibre_bin_path' ${djvulibre.bin}/bin
57 enableParallelBuilding = true;
59 # Required by Poppler on darwin
60 # https://github.com/jwilk/pdf2djvu/commit/373e065faf2f0d868a3700788d20a96e9528bb12
61 CXXFLAGS = "-std=c++17";
64 description = "Creates djvu files from PDF files";
65 homepage = "https://jwilk.net/software/pdf2djvu";
66 license = licenses.gpl2Only;
67 maintainers = with maintainers; [ pSub ];
68 mainProgram = "pdf2djvu";