2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-03-15 15:44:08 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-03-15 15:49:22 +00:00
|
|
|
, gettext
|
2020-03-15 15:44:08 +00:00
|
|
|
, pkg-config
|
|
|
|
, networkmanager
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-03-15 15:44:08 +00:00
|
|
|
, libnotify
|
|
|
|
, libsecret
|
|
|
|
, polkit
|
|
|
|
, modemmanager
|
2020-03-15 15:49:22 +00:00
|
|
|
, libnma
|
2020-03-15 15:44:08 +00:00
|
|
|
, glib-networking
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libgudev
|
|
|
|
, jansson
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, libappindicator-gtk3
|
|
|
|
, glib
|
|
|
|
}:
|
2011-09-14 17:52:06 +01:00
|
|
|
|
2020-03-15 15:49:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-20 19:10:07 +00:00
|
|
|
pname = "network-manager-applet";
|
2021-08-31 11:31:50 +01:00
|
|
|
version = "1.24.0";
|
2011-03-26 18:18:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 09:19:50 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-08-31 11:31:50 +01:00
|
|
|
sha256 = "sha256-ufS8pdA1Jxjge3OF+xlam7yP1oa3lZt0E3hU1SqrnFg=";
|
2011-03-26 18:18:32 +00:00
|
|
|
};
|
|
|
|
|
2018-03-20 19:10:07 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dselinux=false"
|
2018-07-05 22:17:22 +01:00
|
|
|
"-Dappindicator=yes"
|
2017-09-16 04:15:33 +01:00
|
|
|
];
|
2015-05-20 12:57:15 +01:00
|
|
|
|
2020-03-15 15:49:22 +00:00
|
|
|
outputs = [ "out" "man" ];
|
2017-09-25 14:40:41 +01:00
|
|
|
|
2012-08-01 10:51:41 +01:00
|
|
|
buildInputs = [
|
2020-03-15 15:49:22 +00:00
|
|
|
libnma
|
2020-03-15 15:44:08 +00:00
|
|
|
gtk3
|
|
|
|
networkmanager
|
|
|
|
libnotify
|
|
|
|
libsecret
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
polkit
|
|
|
|
libgudev
|
|
|
|
modemmanager
|
|
|
|
jansson
|
2021-03-08 13:47:22 +00:00
|
|
|
glib
|
2020-03-15 15:44:08 +00:00
|
|
|
glib-networking
|
|
|
|
libappindicator-gtk3
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.adwaita-icon-theme
|
2020-03-15 15:49:22 +00:00
|
|
|
];
|
2011-09-14 17:52:06 +01:00
|
|
|
|
2020-03-15 15:44:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-03-15 15:49:22 +00:00
|
|
|
gettext
|
2020-03-15 15:44:08 +00:00
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection
|
|
|
|
python3
|
|
|
|
];
|
2013-07-22 21:18:26 +01:00
|
|
|
|
2018-03-20 19:10:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
2016-06-22 01:46:23 +01:00
|
|
|
'';
|
2015-05-20 12:57:15 +01:00
|
|
|
|
2018-03-07 05:09:32 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-07 05:09:32 +00:00
|
|
|
packageName = pname;
|
|
|
|
attrPath = "networkmanagerapplet";
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-07 05:09:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-15 15:49:22 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/network-manager-applet/";
|
2011-09-14 17:52:06 +01:00
|
|
|
description = "NetworkManager control applet for GNOME";
|
2021-03-08 13:47:22 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-12-18 09:25:46 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-20 19:10:07 +00:00
|
|
|
platforms = platforms.linux;
|
2011-03-26 18:18:32 +00:00
|
|
|
};
|
2011-09-14 17:52:06 +01:00
|
|
|
}
|