From fead9a62eb020b456046204790f96a7e710ad005 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Tue, 1 Aug 2017 02:24:22 +0200 Subject: [PATCH] pdfgrep: 1.3.1 -> 2.0.1 --- pkgs/tools/typesetting/pdfgrep/default.nix | 28 ++++++++++++---------- 1 file 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 '