Merge pull request #194944 from wegank/diff-pdf-wxgtk

diff-pdf: migrate to wxGTK32
This commit is contained in:
Sandro 2022-10-11 02:06:48 +02:00 committed by GitHub
commit d62fc69707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 10 deletions

View File

@ -1,12 +1,5 @@
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK ? null, wxmac ? null, darwin ? null }:
{ lib, stdenv, fetchFromGitHub, autoconf, automake, pkg-config, cairo, poppler, wxGTK, Cocoa }:
let
wxInputs =
if stdenv.isDarwin then
[ wxmac darwin.apple_sdk.frameworks.Cocoa ]
else
[ wxGTK ];
in
stdenv.mkDerivation rec {
pname = "diff-pdf";
version = "0.5";
@ -19,7 +12,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoconf automake pkg-config ];
buildInputs = [ cairo poppler ] ++ wxInputs;
buildInputs = [ cairo poppler wxGTK ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
preConfigure = "./bootstrap";

View File

@ -30441,7 +30441,10 @@ with pkgs;
diffpdf = libsForQt5.callPackage ../applications/misc/diffpdf { };
diff-pdf = callPackage ../applications/misc/diff-pdf { wxGTK = wxGTK31; };
diff-pdf = callPackage ../applications/misc/diff-pdf {
wxGTK = wxGTK32;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
diffuse = callPackage ../applications/misc/diffuse { };