Skip to content

Commit

Permalink
perl534Packages.Wx: migrate to wxGTK32
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Mar 19, 2023
1 parent 9d3b37c commit 0bac6b8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ let
substituteInPlace Build.PL \
--replace "gtk+-2.0" "gtk+-3.0"
'';
propagatedBuildInputs = [ pkgs.pkg-config pkgs.gtk3 pkgs.wxGTK30 ModulePluggable ];
propagatedBuildInputs = [ pkgs.pkg-config pkgs.gtk3 pkgs.wxGTK32 ModulePluggable ];
buildInputs = [ LWPProtocolHttps ];
meta = {
description = "Building, finding and using wxWidgets binaries";
Expand Down Expand Up @@ -26993,10 +26993,23 @@ let
};
patches = [
(fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/gtk3.patch?h=perl-wx&id=a3776d3747e3767d1e0f6d37bdaabf087f779fea";
url = "https://sources.debian.org/data/main/libw/libwx-perl/1%3A0.9932-8/debian/patches/gtk3.patch";
hash = "sha256-CokmRzDTFmEMN/jTKw9ECCPvi0mHt5+h8Ojg4Jgd7D4=";
})
(fetchpatch {
url = "https://sources.debian.org/data/main/libw/libwx-perl/1%3A0.9932-8/debian/patches/wxWidgets_3.2_MakeMaker.patch";
hash = "sha256-kTJiCGv8yxQbgMych9yT2cOt+2bL1G4oJ0gehNcu0Rc=";
})
(fetchpatch {
url = "https://sources.debian.org/data/main/libw/libwx-perl/1%3A0.9932-8/debian/patches/wxWidgets_3.2_port.patch";
hash = "sha256-y9LMpcbm7p8+LZ2Hw3PA2jc7bHAFEu0QRa170XuseKw=";
})
];
# DND.c:453:15: error: incompatible integer to pointer conversion assigning to 'NativeFormat' (aka 'const __CFString *') from 'wxDataFormatId'
postPatch = ''
substituteInPlace ext/dnd/XS/DataObject.xs \
--replace "#ifdef __WXGTK20__" "#if wxUSE_GUI"
'';
propagatedBuildInputs = [ AlienWxWidgets ];
# Testing requires an X server:
# Error: Unable to initialize GTK, is DISPLAY set properly?"
Expand Down

0 comments on commit 0bac6b8

Please sign in to comment.