diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-01 02:24:22 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-01 08:36:35 +0200 |
commit | fead9a62eb020b456046204790f96a7e710ad005 (patch) | |
tree | 443d22c095afcca4413c1bc4771c678b8dcc38f2 /pkgs/tools | |
parent | 1ece82dc95f14b611e575452e34619717bb02cc3 (diff) | |
download | nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar.gz nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar.bz2 nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar.lz nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar.xz nixlib-fead9a62eb020b456046204790f96a7e710ad005.tar.zst nixlib-fead9a62eb020b456046204790f96a7e710ad005.zip |
pdfgrep: 1.3.1 -> 2.0.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/typesetting/pdfgrep/default.nix | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pkgs/tools/typesetting/pdfgrep/default.nix b/pkgs/tools/typesetting/pdfgrep/default.nix index 6e5f98d4a717..0c288ca02ccf 100644 --- a/pkgs/tools/typesetting/pdfgrep/default.nix +++ b/pkgs/tools/typesetting/pdfgrep/default.nix @@ -1,26 +1,28 @@ -{ fetchurl, stdenv, pkgconfig, poppler, makeWrapper }: +{ stdenv, fetchurl, pkgconfig, poppler, libgcrypt, pcre, asciidoc }: stdenv.mkDerivation rec { name = "pdfgrep-${version}"; - version = "1.3.1"; + version = "2.0.1"; src = fetchurl { - url = "mirror://sourceforge/project/pdfgrep/${version}/${name}.tar.gz"; - sha256 = "6e8bcaf8b219e1ad733c97257a97286a94124694958c27506b2ea7fc8e532437"; + url = "https://pdfgrep.org/download/${name}.tar.gz"; + sha256 = "07llkrkcfjwd3ybai9ad10ybhr0biffcplmy7lw4fb87nd2dfw03"; }; - buildInputs = [ pkgconfig poppler makeWrapper ]; - - patchPhase = '' - sed -i -e "s%cpp/poppler-document.h%poppler/cpp/poppler-document.h%" pdfgrep.cc - sed -i -e "s%cpp/poppler-page.h%poppler/cpp/poppler-page.h%" pdfgrep.cc + postPatch = '' + for i in ./src/search.h ./src/pdfgrep.cc ./src/search.cc; do + substituteInPlace $i --replace '<cpp/' '<' + done ''; + nativeBuildInputs = [ pkgconfig asciidoc ]; + buildInputs = [ poppler libgcrypt pcre ]; + meta = { - description = "A tool to search text in PDF files"; - homepage = http://pdfgrep.sourceforge.net/; - license = stdenv.lib.licenses.free; - maintainers = with stdenv.lib.maintainers; [qknight]; + description = "Commandline utility to search text in PDF files"; + homepage = https://pdfgrep.org/; + license = stdenv.lib.licenses.gpl2Plus; + maintainers = with stdenv.lib.maintainers; [ qknight fpletz ]; platforms = with stdenv.lib.platforms; linux; }; } |