@@ -2,6 +2,7 @@
22, pkg-config
33, python3
44, fetchFromGitLab
5+, fetchpatch
56, gtk3
67, glib
78, gdbm
@@ -44,6 +45,20 @@ stdenv.mkDerivation rec {
4445 libayatana-appindicator-gtk3
4546 ];
4647
48+ patches = [
49+ # Fix missing tray icon
50+ (fetchpatch {
51+ url = "https://salsa.debian.org/debian/modem-manager-gui/-/raw/7c3e67a1cf7788d7a4b86be12803870d79aa27f2/debian/patches/fix-tray-icon.patch";
52+ sha256 = "sha256-9LjCEQl8YfraVlO1W7+Yy7egLAPu5YfnvGvCI3uGFh8=";
53+ })
54+ # Fix build with meson 0.61
55+ # appdata/meson.build:3:5: ERROR: Function does not take positional arguments.
56+ (fetchpatch {
57+ url = "https://salsa.debian.org/debian/modem-manager-gui/-/raw/7c3e67a1cf7788d7a4b86be12803870d79aa27f2/debian/patches/meson0.61.patch";
58+ sha256 = "sha256-B+tBPIz5RxOwZWYEWttqSKGw2Wbfk0mnBY0Zy0evvAQ=";
59+ })
60+ ];
61+
4762 postPatch = ''
4863 patchShebangs man/manhelper.py
4964 '';