at 18.03-beta 32 lines 899 B view raw
1{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }: 2 3let 4 wxInputs = 5 if stdenv.isDarwin then 6 [ wxmac darwin.apple_sdk.frameworks.Cocoa ] 7 else 8 [ wxGTK ]; 9in 10stdenv.mkDerivation rec { 11 name = "diff-pdf-${version}"; 12 version = "2017-12-30"; 13 14 src = fetchFromGitHub { 15 owner = "vslavik"; 16 repo = "diff-pdf"; 17 rev = "c4d67226ec4c29b30a7399e75f80636ff8a6f9fc"; 18 sha256 = "1c3ig7ckrg37p5vzvgjnsfdzdad328wwsx0r31lbs1d8pkjkgq3m"; 19 }; 20 21 nativeBuildInputs = [ autoconf automake pkgconfig ]; 22 buildInputs = [ cairo poppler ] ++ wxInputs; 23 24 preConfigure = "./bootstrap"; 25 26 meta = with stdenv.lib; { 27 homepage = http://vslavik.github.io/diff-pdf; 28 description = "Simple tool for visually comparing two PDF files"; 29 license = licenses.gpl2; 30 maintainers = with maintainers; [ dtzWill ]; 31 }; 32}