forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, pkgconfig
|
|
, python3
|
|
, fetchFromGitLab
|
|
, gtk3
|
|
, glib
|
|
, gdbm
|
|
, gtkspell3
|
|
, ofono
|
|
, itstool
|
|
, libayatana-appindicator-gtk3
|
|
, perlPackages
|
|
, glibcLocales
|
|
, 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 = [
|
|
pkgconfig
|
|
python3
|
|
perlPackages.Po4a
|
|
itstool
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
glib
|
|
gdbm
|
|
gtkspell3
|
|
ofono
|
|
libayatana-appindicator-gtk3
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|