nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 pkg-config,
8 cairo,
9 poppler,
10 wxGTK,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "diff-pdf";
15 version = "0.5.2";
16
17 src = fetchFromGitHub {
18 owner = "vslavik";
19 repo = "diff-pdf";
20 rev = "v${version}";
21 sha256 = "sha256-6aKF3Xqp/1BoHEiZVZJSemTjn5Qwwr3QyhsXOIjTr08=";
22 };
23
24 nativeBuildInputs = [
25 autoconf
26 automake
27 pkg-config
28 ];
29 buildInputs = [
30 cairo
31 poppler
32 wxGTK
33 ];
34
35 preConfigure = "./bootstrap";
36
37 meta = with lib; {
38 homepage = "https://vslavik.github.io/diff-pdf/";
39 description = "Simple tool for visually comparing two PDF files";
40 license = licenses.gpl2;
41 platforms = platforms.all;
42 maintainers = with maintainers; [ dtzWill ];
43 mainProgram = "diff-pdf";
44 };
45}