My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/networking/modem-manager-gui/default.nix

79 lines
2.0 KiB

{ lib, stdenv
, pkg-config
, python3
, fetchFromGitLab
, fetchpatch
, gtk3
, glib
, gdbm
, gtkspell3
, ofono
, itstool
, libayatana-appindicator-gtk3
, perlPackages
, meson
, ninja
}:
stdenv.mkDerivation rec {
pname = "modem-manager-gui";
version = "0.0.20";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = "modem-manager-gui";
rev = "upstream%2F${version}";
sha256 = "1pjx4rbsxa7gcs628yjkwb0zqrm5xq8pkmp0cfk4flfk1ryflmgr";
};
nativeBuildInputs = [
pkg-config
python3
perlPackages.Po4a
itstool
meson
ninja
];
buildInputs = [
gtk3
glib
gdbm
gtkspell3
ofono
libayatana-appindicator-gtk3
];
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=";
})
];
postPatch = ''
patchShebangs man/manhelper.py
'';
meta = with lib; {
description = "An app to send/receive SMS, make USSD requests, control mobile data usage and more";
longDescription = ''
A simple GTK based GUI compatible with Modem manager, Wader and oFono
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.
'';
homepage = "https://linuxonly.ru/page/modem-manager-gui";
license = licenses.gpl3;
maintainers = with maintainers; [ ahuzik galagora ];
platforms = platforms.linux;
};
}