571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
829 B
Nix
31 lines
829 B
Nix
{ lib, stdenv, makeWrapper, fetchurl, djvulibre, ghostscript, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.2";
|
|
pname = "djvu2pdf";
|
|
|
|
src = fetchurl {
|
|
url = "http://0x2a.at/site/projects/djvu2pdf/djvu2pdf-${version}.tar.gz";
|
|
sha256 = "0v2ax30m7j1yi4m02nzn9rc4sn4vzqh5vywdh96r64j4pwvn5s5g";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -p djvu2pdf $out/bin
|
|
wrapProgram $out/bin/djvu2pdf --prefix PATH : ${lib.makeBinPath [ ghostscript djvulibre which ]}
|
|
|
|
mkdir -p $out/man/man1
|
|
cp -p djvu2pdf.1.gz $out/man/man1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Convert DjVu files to PDF files";
|
|
homepage = "https://0x2a.at/site/projects/djvu2pdf/";
|
|
license = lib.licenses.gpl1Only;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "djvu2pdf";
|
|
};
|
|
}
|