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; }; }