1 { lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK, Cocoa }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-6aKF3Xqp/1BoHEiZVZJSemTjn5Qwwr3QyhsXOIjTr08=";
14 nativeBuildInputs = [ autoconf automake pkg-config ];
15 buildInputs = [ cairo poppler wxGTK ]
16 ++ lib.optionals stdenv.isDarwin [ Cocoa ];
18 preConfigure = "./bootstrap";
21 homepage = "https://vslavik.github.io/diff-pdf/";
22 description = "Simple tool for visually comparing two PDF files";
23 license = licenses.gpl2;
24 platforms = platforms.all;
25 maintainers = with maintainers; [ dtzWill ];
26 mainProgram = "diff-pdf";