at 23.11-beta 27 lines 777 B view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK, Cocoa }: 2 3stdenv.mkDerivation rec { 4 pname = "diff-pdf"; 5 version = "0.5.1"; 6 7 src = fetchFromGitHub { 8 owner = "vslavik"; 9 repo = "diff-pdf"; 10 rev = "v${version}"; 11 sha256 = "sha256-jt11wssl8cH2cH3NXF+iWHxVNxPJm0I8toignBHq3q0="; 12 }; 13 14 nativeBuildInputs = [ autoconf automake pkg-config ]; 15 buildInputs = [ cairo poppler wxGTK ] 16 ++ lib.optionals stdenv.isDarwin [ Cocoa ]; 17 18 preConfigure = "./bootstrap"; 19 20 meta = with lib; { 21 homepage = "https://vslavik.github.io/diff-pdf/"; 22 description = "Simple tool for visually comparing two PDF files"; 23 license = licenses.gpl2; 24 platforms = platforms.all; 25 maintainers = with maintainers; [ dtzWill ]; 26 }; 27}