nixpkgs/pkgs/tools/typesetting/pdf2djvu/default.nix
Pascal Wittmann 7a8656407d
pdf2djvu: 0.9.4 -> 0.9.5
and fix build that broke due to multiple outputs of djvulibre
2017-01-09 20:49:02 +01:00

28 lines
770 B
Nix

{ stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
stdenv.mkDerivation rec {
version = "0.9.5";
name = "pdf2djvu-${version}";
src = fetchurl {
url = "https://github.com/jwilk/pdf2djvu/releases/download/${version}/${name}.tar.xz";
sha256 = "0fr8b44rsqll2m6qnh9id1lfc980k7rj3aq975mwba4y57rwnlnc";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ djvulibre poppler fontconfig libjpeg ];
preConfigure = ''
sed -i 's#\$djvulibre_bin_path#${djvulibre.bin}/bin#g' configure
'';
meta = with stdenv.lib; {
description = "Creates djvu files from PDF files";
homepage = http://code.google.com/p/pdf2djvu/;
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
inherit version;
};
}