2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }:
|
2018-02-06 18:57:55 +01:00
|
|
|
|
2018-02-06 19:57:52 +01:00
|
|
|
let
|
|
|
|
wxInputs =
|
|
|
|
if stdenv.isDarwin then
|
|
|
|
[ wxmac darwin.apple_sdk.frameworks.Cocoa ]
|
|
|
|
else
|
|
|
|
[ wxGTK ];
|
|
|
|
in
|
2019-09-15 11:20:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "diff-pdf";
|
2021-02-14 01:24:55 +01:00
|
|
|
version = "0.5";
|
2018-02-06 18:57:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vslavik";
|
|
|
|
repo = "diff-pdf";
|
2019-09-15 11:20:00 +02:00
|
|
|
rev = "v${version}";
|
2021-02-14 01:24:55 +01:00
|
|
|
sha256 = "sha256-Si8v5ZY1Q/AwQTaxa1bYG8bgqxWj++c4Hh1LzXSmSwE=";
|
2018-02-06 18:57:55 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake pkg-config ];
|
2018-02-06 19:57:52 +01:00
|
|
|
buildInputs = [ cairo poppler ] ++ wxInputs;
|
2018-02-06 18:57:55 +01:00
|
|
|
|
|
|
|
preConfigure = "./bootstrap";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-15 11:20:00 +02:00
|
|
|
homepage = "https://vslavik.github.io/diff-pdf/";
|
2018-02-06 18:57:55 +01:00
|
|
|
description = "Simple tool for visually comparing two PDF files";
|
|
|
|
license = licenses.gpl2;
|
2019-09-15 11:20:00 +02:00
|
|
|
platforms = platforms.all;
|
2018-02-06 18:57:55 +01:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|