at 22.05-pre 33 lines 887 B view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, 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 pname = "diff-pdf"; 12 version = "0.5"; 13 14 src = fetchFromGitHub { 15 owner = "vslavik"; 16 repo = "diff-pdf"; 17 rev = "v${version}"; 18 sha256 = "sha256-Si8v5ZY1Q/AwQTaxa1bYG8bgqxWj++c4Hh1LzXSmSwE="; 19 }; 20 21 nativeBuildInputs = [ autoconf automake pkg-config ]; 22 buildInputs = [ cairo poppler ] ++ wxInputs; 23 24 preConfigure = "./bootstrap"; 25 26 meta = with lib; { 27 homepage = "https://vslavik.github.io/diff-pdf/"; 28 description = "Simple tool for visually comparing two PDF files"; 29 license = licenses.gpl2; 30 platforms = platforms.all; 31 maintainers = with maintainers; [ dtzWill ]; 32 }; 33}