diff-pdf: migrate to wxGTK32

This commit is contained in:
Weijia Wang 2022-10-08 16:16:48 +02:00
parent a989aa4619
commit 7c45233bcb
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

@ -30334,7 +30334,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 { };