From 7fb3d2a001a3dcbbe97cec6bd5f3da6734836956 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 14 Mar 2023 12:00:30 +0200 Subject: [PATCH] amule: migrate to wxGTK32 --- pkgs/tools/networking/p2p/amule/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/p2p/amule/default.nix b/pkgs/tools/networking/p2p/amule/default.nix index 8cd0f7935ecf..ff8ecc385cdb 100644 --- a/pkgs/tools/networking/p2p/amule/default.nix +++ b/pkgs/tools/networking/p2p/amule/default.nix @@ -3,11 +3,12 @@ , httpServer ? false # build web interface for the daemon , client ? false # build amule remote gui , fetchFromGitHub +, fetchpatch , stdenv , lib , cmake , zlib -, wxGTK30 # WxGTK 3.0 must be used because aMule does not yet work well with 3.1 +, wxGTK32 , perl , cryptopp , libupnp @@ -37,11 +38,18 @@ stdenv.mkDerivation rec { sha256 = "1nm4vxgmisn1b6l3drmz0q04x067j2i8lw5rnf0acaapwlp8qwvi"; }; + patches = [ + (fetchpatch { + url = "https://sources.debian.org/data/main/a/amule/1%3A2.3.3-3/debian/patches/wx3.2.patch"; + hash = "sha256-OX5Ef80bL+dQqHo2OBLZvzMUrU6aOHfsF7AtoE1r7rs="; + }) + ]; + nativeBuildInputs = [ cmake gettext makeWrapper pkg-config ]; buildInputs = [ zlib - wxGTK30 + wxGTK32 perl cryptopp.dev libupnp @@ -90,6 +98,7 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; maintainers = with maintainers; [ ]; platforms = platforms.unix; + # Undefined symbols for architecture arm64: "_FSFindFolder" broken = stdenv.isDarwin; }; }