2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, makeWrapper, fetchurl, djvulibre, ghostscript, which }:
|
2014-06-25 18:14:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.9.2";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "djvu2pdf";
|
2014-06-25 18:14:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://0x2a.at/site/projects/djvu2pdf/djvu2pdf-${version}.tar.gz";
|
|
|
|
sha256 = "0v2ax30m7j1yi4m02nzn9rc4sn4vzqh5vywdh96r64j4pwvn5s5g";
|
|
|
|
};
|
|
|
|
|
2015-12-19 08:42:01 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2014-06-25 18:18:18 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/bin
|
2014-06-25 18:18:18 +00:00
|
|
|
cp -p djvu2pdf $out/bin
|
2021-01-15 09:19:50 +00:00
|
|
|
wrapProgram $out/bin/djvu2pdf --prefix PATH : ${lib.makeBinPath [ ghostscript djvulibre which ]}
|
2015-12-19 08:42:01 +00:00
|
|
|
|
2014-07-22 09:01:32 +00:00
|
|
|
mkdir -p $out/man/man1
|
2014-06-25 18:18:18 +00:00
|
|
|
cp -p djvu2pdf.1.gz $out/man/man1
|
|
|
|
'';
|
2014-06-25 18:14:53 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-09-29 15:33:08 +00:00
|
|
|
description = "Convert DjVu files to PDF files";
|
2021-01-16 23:56:33 +00:00
|
|
|
homepage = "https://0x2a.at/site/projects/djvu2pdf/";
|
|
|
|
license = lib.licenses.gpl1Only;
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.all;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "djvu2pdf";
|
2014-06-25 18:14:53 +00:00
|
|
|
};
|
|
|
|
}
|