nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK, Cocoa }:
2
3stdenv.mkDerivation rec {
4 pname = "diff-pdf";
5 version = "0.5";
6
7 src = fetchFromGitHub {
8 owner = "vslavik";
9 repo = "diff-pdf";
10 rev = "v${version}";
11 sha256 = "sha256-Si8v5ZY1Q/AwQTaxa1bYG8bgqxWj++c4Hh1LzXSmSwE=";
12 };
13
14 nativeBuildInputs = [ autoconf automake pkg-config ];
15 buildInputs = [ cairo poppler wxGTK ]
16 ++ lib.optionals stdenv.isDarwin [ Cocoa ];
17
18 preConfigure = "./bootstrap";
19
20 meta = with lib; {
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 };
27}