1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/misc/diff-pdf/default.nix

33 lines
899 B
Nix
Raw Normal View History

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
2018-02-06 17:57:55 +00:00
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 ];
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; {
homepage = http://vslavik.github.io/diff-pdf;
description = "Simple tool for visually comparing two PDF files";
license = licenses.gpl2;
maintainers = with maintainers; [ dtzWill ];
};
}