summary refs log tree commit diff
path: root/pkgs/applications/misc/diff-pdf/default.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-02-07 03:41:24 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-02-07 03:41:24 +0200
commit4c6c919a3141b14c3e90607f171e534a82eceeb0 (patch)
tree9ea646e0f14fa84fa38a545a4edc33926208db96 /pkgs/applications/misc/diff-pdf/default.nix
parent335ae386741f74c63cf3bf4b7022a1e5e5f26066 (diff)
parentfc1224d55dfdde0a3e43635fc9465cdff0bb80a3 (diff)
downloadnixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar.gz
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar.bz2
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar.lz
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar.xz
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.tar.zst
nixlib-4c6c919a3141b14c3e90607f171e534a82eceeb0.zip
Merge remote-tracking branch 'upstream/master' into HEAD
Conflicts:
	pkgs/os-specific/linux/kernel/generic.nix
Diffstat (limited to 'pkgs/applications/misc/diff-pdf/default.nix')
-rw-r--r--pkgs/applications/misc/diff-pdf/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/misc/diff-pdf/default.nix b/pkgs/applications/misc/diff-pdf/default.nix
new file mode 100644
index 000000000000..467c2b3c2d59
--- /dev/null
+++ b/pkgs/applications/misc/diff-pdf/default.nix
@@ -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 ];
+  };
+}