Merge pull request #131105 from Stunkymonkey/pdfread-remove
pdfread: remove
This commit is contained in:
commit
1c30480b6e
2 changed files with 1 additions and 54 deletions
|
@ -1,51 +0,0 @@
|
||||||
{lib, stdenv, fetchurl, unzip, python, makeWrapper, ghostscript, pngnq, pillow, djvulibre
|
|
||||||
, optipng, unrar}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "pdfread-1.8.2";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
# I got it from http://www.mobileread.com/forums/showthread.php?t=21906
|
|
||||||
# But that needs user registration to allow downloading.
|
|
||||||
# This is an evolution from pdfread 1.7 in http://pdfread.sourceforge.net/
|
|
||||||
# Temporary place:
|
|
||||||
url = "http://vicerveza.homeunix.net/~viric/soft/PDFRead-1.8.2-Source-noGUI-noInstaller.zip";
|
|
||||||
sha256 = "0mzxpnk97f0ww5ds7h4wsval3g4lnrhv6rhspjs7cy4i41gmk8an";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper unzip ];
|
|
||||||
buildInputs = [ python ];
|
|
||||||
|
|
||||||
broken = true; # Not found.
|
|
||||||
|
|
||||||
phases = "unpackPhase patchPhase installPhase";
|
|
||||||
|
|
||||||
unpackPhase = ''
|
|
||||||
unzip $src
|
|
||||||
sourceRoot=`pwd`/PDFRead/src
|
|
||||||
'';
|
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i 's,#!/usr.*,#!${python}/bin/python,' pdfread.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp pdfread.py $out/bin
|
|
||||||
chmod +x $out/bin/pdfread.py
|
|
||||||
|
|
||||||
LIBSUFFIX=lib/${python.libPrefix}/site-packages/
|
|
||||||
PYDIR=$out/$LIBSUFFIX
|
|
||||||
mkdir -p $PYDIR
|
|
||||||
cp -R *.py pylrs $PYDIR
|
|
||||||
|
|
||||||
wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pillow}/$LIBSUFFIX/PIL:$PYDIR \
|
|
||||||
--prefix PATH : ${lib.makeBinPath [ ghostscript pngnq djvulibre unrar optipng ]}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "PDF/DJVU to ebook format converter";
|
|
||||||
homepage = "https://www.mobileread.com/forums/showthread.php?t=21906";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -7943,9 +7943,7 @@ in
|
||||||
|
|
||||||
pdfarranger = callPackage ../applications/misc/pdfarranger { };
|
pdfarranger = callPackage ../applications/misc/pdfarranger { };
|
||||||
|
|
||||||
pdfread = callPackage ../tools/graphics/pdfread {
|
pdfread = throw "pdfread has been remove from nixpkgs, because it is unmaintained for years and the sources are no longer available";
|
||||||
inherit (pythonPackages) pillow;
|
|
||||||
};
|
|
||||||
|
|
||||||
briss = callPackage ../tools/graphics/briss { };
|
briss = callPackage ../tools/graphics/briss { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue