nixpkgs/pkgs/applications/misc/diff-pdf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
775 B
Nix
Raw Normal View History

2022-10-08 14:16:48 +00:00
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK, Cocoa }:
2018-02-06 17:57:55 +00:00
2019-09-15 09:20:00 +00:00
stdenv.mkDerivation rec {
pname = "diff-pdf";
2021-02-14 00:24:55 +00:00
version = "0.5";
2018-02-06 17:57:55 +00:00
src = fetchFromGitHub {
owner = "vslavik";
repo = "diff-pdf";
2019-09-15 09:20:00 +00:00
rev = "v${version}";
2021-02-14 00:24:55 +00:00
sha256 = "sha256-Si8v5ZY1Q/AwQTaxa1bYG8bgqxWj++c4Hh1LzXSmSwE=";
2018-02-06 17:57:55 +00:00
};
nativeBuildInputs = [ autoconf automake pkg-config ];
2022-10-08 14:16:48 +00:00
buildInputs = [ cairo poppler wxGTK ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
2018-02-06 17:57:55 +00:00
preConfigure = "./bootstrap";
meta = with lib; {
2019-09-15 09:20:00 +00:00
homepage = "https://vslavik.github.io/diff-pdf/";
2018-02-06 17:57:55 +00:00
description = "Simple tool for visually comparing two PDF files";
license = licenses.gpl2;
2019-09-15 09:20:00 +00:00
platforms = platforms.all;
2018-02-06 17:57:55 +00:00
maintainers = with maintainers; [ dtzWill ];
};
}