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