nixpkgs/pkgs/tools/typesetting/pdf2djvu/default.nix
R. RyanTM 2743be6e3f pdf2djvu: 0.9.11 -> 0.9.12
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pdf2djvu/versions
2019-01-07 10:35:09 -08:00

33 lines
911 B
Nix

{ stdenv, fetchurl, pkgconfig, djvulibre, poppler, fontconfig, libjpeg }:
stdenv.mkDerivation rec {
version = "0.9.12";
name = "pdf2djvu-${version}";
src = fetchurl {
url = "https://github.com/jwilk/pdf2djvu/releases/download/${version}/${name}.tar.xz";
sha256 = "10wfgnrkhdzscax5j57wdgqhiw7rwmsfsq945rb6n25ql6d9vyh3";
};
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;
};
}