biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / modem-manager-gui / default.nix
blobba14278292bc03e4695e57828410ca807c4a90a7
1 { lib, stdenv
2 , pkg-config
3 , python3
4 , fetchFromGitLab
5 , fetchpatch
6 , gtk3
7 , glib
8 , gdbm
9 , gtkspell3
10 , ofono
11 , itstool
12 , libayatana-appindicator
13 , perlPackages
14 , meson
15 , ninja
18 stdenv.mkDerivation (finalAttrs: {
19   pname = "modem-manager-gui";
20   version = "0.0.20";
22   src = fetchFromGitLab {
23     domain = "salsa.debian.org";
24     owner = "debian";
25     repo = "modem-manager-gui";
26     rev = "upstream/${finalAttrs.version}";
27     hash = "sha256-+VXqfA7TUUemY+DWeRHupWb8weJTeiSMZu+orlcmXd4=";
28   };
30   nativeBuildInputs = [
31     pkg-config
32     python3
33     perlPackages.Po4a
34     itstool
35     meson
36     ninja
37   ];
39   buildInputs = [
40     gtk3
41     glib
42     gdbm
43     gtkspell3
44     ofono
45     libayatana-appindicator
46   ];
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       hash = "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       hash = "sha256-B+tBPIz5RxOwZWYEWttqSKGw2Wbfk0mnBY0Zy0evvAQ=";
59     })
60     # Fix segfault on launch: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004258
61     # Segmentation fault at address: 0x20
62     (fetchpatch {
63       url = "https://salsa.debian.org/debian/modem-manager-gui/-/commit/8ccffd6dd6b42625d09d5408f37f155d91411116.patch";
64       hash = "sha256-q+B+Bcm3uitJ2IfkCiMo3reFV1C06ekmy1vXWC0oHnw=";
65     })
66   ];
68   postPatch = ''
69     patchShebangs man/manhelper.py
70   '';
72   meta = with lib; {
73     description = "An app to send/receive SMS, make USSD requests, control mobile data usage and more";
74     longDescription = ''
75       A simple GTK based GUI compatible with Modem manager, Wader and oFono
76       system services able to control EDGE/3G/4G broadband modem specific
77       functions. You can check balance of your SIM card, send or receive SMS
78       messages, control mobile traffic consumption and more.
79     '';
80     homepage = "https://linuxonly.ru/page/modem-manager-gui";
81     license = licenses.gpl3;
82     maintainers = with maintainers; [ ahuzik galagora ];
83     platforms = platforms.linux;
84     mainProgram = "modem-manager-gui";
85   };