2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-08-23 16:44:19 +00:00
|
|
|
, python3
|
2020-08-26 23:22:39 +00:00
|
|
|
, fetchFromGitLab
|
2022-05-03 23:18:18 +00:00
|
|
|
, fetchpatch
|
2019-08-23 16:44:19 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, gdbm
|
|
|
|
, gtkspell3
|
|
|
|
, ofono
|
|
|
|
, itstool
|
2020-08-27 01:13:58 +00:00
|
|
|
, libayatana-appindicator-gtk3
|
2019-08-23 16:44:19 +00:00
|
|
|
, perlPackages
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
}:
|
2018-10-24 05:54:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-23 16:44:19 +00:00
|
|
|
pname = "modem-manager-gui";
|
2020-08-26 23:22:39 +00:00
|
|
|
version = "0.0.20";
|
2018-10-24 05:54:18 +00:00
|
|
|
|
2020-08-26 23:22:39 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "salsa.debian.org";
|
|
|
|
owner = "debian";
|
|
|
|
repo = "modem-manager-gui";
|
|
|
|
rev = "upstream%2F${version}";
|
|
|
|
sha256 = "1pjx4rbsxa7gcs628yjkwb0zqrm5xq8pkmp0cfk4flfk1ryflmgr";
|
2018-10-24 05:54:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2018-10-24 05:54:18 +00:00
|
|
|
python3
|
|
|
|
perlPackages.Po4a
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gdbm
|
|
|
|
gtkspell3
|
2019-08-23 16:01:09 +00:00
|
|
|
ofono
|
2020-08-27 01:13:58 +00:00
|
|
|
libayatana-appindicator-gtk3
|
2018-10-24 05:54:18 +00:00
|
|
|
];
|
|
|
|
|
2022-05-03 23:18:18 +00:00
|
|
|
patches = [
|
|
|
|
# Fix missing tray icon
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/debian/modem-manager-gui/-/raw/7c3e67a1cf7788d7a4b86be12803870d79aa27f2/debian/patches/fix-tray-icon.patch";
|
|
|
|
sha256 = "sha256-9LjCEQl8YfraVlO1W7+Yy7egLAPu5YfnvGvCI3uGFh8=";
|
|
|
|
})
|
|
|
|
# Fix build with meson 0.61
|
|
|
|
# appdata/meson.build:3:5: ERROR: Function does not take positional arguments.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/debian/modem-manager-gui/-/raw/7c3e67a1cf7788d7a4b86be12803870d79aa27f2/debian/patches/meson0.61.patch";
|
|
|
|
sha256 = "sha256-B+tBPIz5RxOwZWYEWttqSKGw2Wbfk0mnBY0Zy0evvAQ=";
|
|
|
|
})
|
2022-05-24 21:37:23 +00:00
|
|
|
# Fix segfault on launch: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004258
|
|
|
|
# Segmentation fault at address: 0x20
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/debian/modem-manager-gui/-/commit/8ccffd6dd6b42625d09d5408f37f155d91411116.patch";
|
|
|
|
sha256 = "sha256-q+B+Bcm3uitJ2IfkCiMo3reFV1C06ekmy1vXWC0oHnw=";
|
|
|
|
})
|
2022-05-03 23:18:18 +00:00
|
|
|
];
|
|
|
|
|
2018-10-24 05:54:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs man/manhelper.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-24 05:54:18 +00:00
|
|
|
description = "An app to send/receive SMS, make USSD requests, control mobile data usage and more";
|
|
|
|
longDescription = ''
|
2019-09-03 22:49:40 +00:00
|
|
|
A simple GTK based GUI compatible with Modem manager, Wader and oFono
|
2018-10-24 05:54:18 +00:00
|
|
|
system services able to control EDGE/3G/4G broadband modem specific
|
|
|
|
functions. You can check balance of your SIM card, send or receive SMS
|
|
|
|
messages, control mobile traffic consumption and more.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://linuxonly.ru/page/modem-manager-gui";
|
2018-10-24 05:54:18 +00:00
|
|
|
license = licenses.gpl3;
|
2020-08-27 01:13:58 +00:00
|
|
|
maintainers = with maintainers; [ ahuzik galagora ];
|
2018-10-24 05:54:18 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|