1 { lib, stdenv, fetchurl, pkg-config, poppler, libgcrypt, pcre, asciidoc }:
3 stdenv.mkDerivation rec {
8 url = "https://pdfgrep.org/download/${pname}-${version}.tar.gz";
9 sha256 = "1fia10djcxxl7n9jw2prargw4yzbykk6izig2443ycj9syhxrwqf";
13 for i in ./src/search.h ./src/pdfgrep.cc ./src/search.cc; do
14 substituteInPlace $i --replace '<cpp/' '<'
18 nativeBuildInputs = [ pkg-config asciidoc ];
19 buildInputs = [ poppler libgcrypt pcre ];
22 description = "Commandline utility to search text in PDF files";
23 homepage = "https://pdfgrep.org/";
24 license = lib.licenses.gpl2Plus;
25 maintainers = with lib.maintainers; [ qknight fpletz ];
26 platforms = with lib.platforms; unix;