about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ex/extractpdfmark/package.nix
blob: 9b95e6e101edbde96864ba17ceb21f5eabdb1925 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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";
  };
}