Merge pull request #34674 from dtzWill/feature/diff-pdf

diff-pdf: init at 2017-12-30.
This commit is contained in:
Michael Raskin 2018-02-06 19:33:59 +00:00 committed by GitHub
commit 5e8ae8d597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }:
let
wxInputs =
if stdenv.isDarwin then
[ wxmac darwin.apple_sdk.frameworks.Cocoa ]
else
[ wxGTK ];
in
stdenv.mkDerivation rec {
name = "diff-pdf-${version}";
version = "2017-12-30";
src = fetchFromGitHub {
owner = "vslavik";
repo = "diff-pdf";
rev = "c4d67226ec4c29b30a7399e75f80636ff8a6f9fc";
sha256 = "1c3ig7ckrg37p5vzvgjnsfdzdad328wwsx0r31lbs1d8pkjkgq3m";
};
nativeBuildInputs = [ autoconf automake pkgconfig ];
buildInputs = [ cairo poppler ] ++ wxInputs;
preConfigure = "./bootstrap";
meta = with stdenv.lib; {
homepage = http://vslavik.github.io/diff-pdf;
description = "Simple tool for visually comparing two PDF files";
license = licenses.gpl2;
maintainers = with maintainers; [ dtzWill ];
};
}

View File

@ -16445,6 +16445,8 @@ with pkgs;
diffpdf = callPackage ../applications/misc/diffpdf { };
diff-pdf = callPackage ../applications/misc/diff-pdf { wxGTK = wxGTK31; };
mlocate = callPackage ../tools/misc/mlocate { };
mypaint = callPackage ../applications/graphics/mypaint { };