nixpkgs/pkgs/tools/typesetting/pdfgrep/default.nix
R. RyanTM 0527b325a4 pdfgrep: 2.1.0 -> 2.1.1 (#41048)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pdfgrep/versions.

These checks were done:

- built on NixOS
- /nix/store/x24n7dayjdzkr7spig1qvhq9vadgswyh-pdfgrep-2.1.1/bin/pdfgrep passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.1.1 with grep in /nix/store/x24n7dayjdzkr7spig1qvhq9vadgswyh-pdfgrep-2.1.1
- directory tree listing: https://gist.github.com/f441dd82cfb9701f3e9ae1fc9653b4f0
- du listing: https://gist.github.com/23df51a35a4e7e35c11787490219aea1
2018-05-25 00:49:32 +02:00

29 lines
823 B
Nix

{ stdenv, fetchurl, pkgconfig, poppler, libgcrypt, pcre, asciidoc }:
stdenv.mkDerivation rec {
name = "pdfgrep-${version}";
version = "2.1.1";
src = fetchurl {
url = "https://pdfgrep.org/download/${name}.tar.gz";
sha256 = "02qcl5kmr5qzjfc99qpbpfb1890bxlrq3r208gnding51zrmb09c";
};
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 = "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;
};
}