summary refs log tree commit diff
path: root/pkgs/applications/misc/diff-pdf/default.nix
blob: 0016f89746d63a64369684b2b459406a48df65af (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
{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }:

let
  wxInputs =
    if stdenv.isDarwin then
      [ wxmac darwin.apple_sdk.frameworks.Cocoa ]
    else
      [ wxGTK ];
in
stdenv.mkDerivation {
  pname = "diff-pdf";
  version = "2017-12-30";

  src = fetchFromGitHub {
    owner = "vslavik";
    repo = "diff-pdf";
    rev = "c4d67226ec4c29b30a7399e75f80636ff8a6f9fc";
    sha256 = "1c3ig7ckrg37p5vzvgjnsfdzdad328wwsx0r31lbs1d8pkjkgq3m";
  };

  nativeBuildInputs = [ autoconf automake pkgconfig ];
  buildInputs = [ cairo poppler ] ++ wxInputs;

  preConfigure = "./bootstrap";

  meta = with stdenv.lib; {
    homepage = http://vslavik.github.io/diff-pdf;
    description = "Simple tool for visually comparing two PDF files";
    license = licenses.gpl2;
    maintainers = with maintainers; [ dtzWill ];
  };
}