Merge pull request #294768 from samueltardieu/extractpdfmark

This commit is contained in:
Julien Malka 2024-03-19 08:52:16 +01:00 committed by GitHub
commit c413b8eb9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,39 @@
{ autoreconfHook
, fetchFromGitHub
, ghostscript
, lib
, pkg-config
, poppler
, stdenv
, texlive
}:
stdenv.mkDerivation rec {
pname = "extractpdfmark";
version = "1.1.1";
src = fetchFromGitHub {
owner = "trueroad";
repo = "extractpdfmark";
rev = "v${version}";
hash = "sha256-pNc/SWAtQWMbB2+lIQkJdBYSZ97iJXK71mS59qQa7Hs=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ ghostscript poppler texlive.combined.scheme-minimal ];
postPatch = ''
touch config.rpath
'';
doCheck = true;
meta = with lib; {
homepage = "https://github.com/trueroad/extractpdfmark";
description = "Extract page mode and named destinations as PDFmark from PDF";
license = licenses.gpl3Plus;
maintainers = [ maintainers.samueltardieu ];
platforms = platforms.all;
mainProgram = "extractpdfmark";
};
}