2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 21:04:30 +00:00
nixpkgs/pkgs/by-name/dj/djvu2pdf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
829 B
Nix
Raw Normal View History

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";
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 ];
installPhase = ''
2014-07-22 09:01:32 +00:00
mkdir -p $out/bin
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
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";
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
};
}