3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/networkmanager/applet/default.nix

90 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-03-15 15:44:08 +00:00
, fetchurl
, meson
, ninja
, gettext
2020-03-15 15:44:08 +00:00
, pkg-config
, networkmanager
, gnome
2020-03-15 15:44:08 +00:00
, libnotify
, libsecret
, polkit
, modemmanager
, libnma
2020-03-15 15:44:08 +00:00
, glib-networking
, gsettings-desktop-schemas
, libgudev
, jansson
, wrapGAppsHook
, gobject-introspection
, python3
, gtk3
, libappindicator-gtk3
, glib
}:
stdenv.mkDerivation rec {
2018-03-20 19:10:07 +00:00
pname = "network-manager-applet";
version = "1.24.0";
src = fetchurl {
2021-01-15 09:19:50 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-ufS8pdA1Jxjge3OF+xlam7yP1oa3lZt0E3hU1SqrnFg=";
};
2018-03-20 19:10:07 +00:00
mesonFlags = [
"-Dselinux=false"
"-Dappindicator=yes"
];
outputs = [ "out" "man" ];
2017-09-25 14:40:41 +01:00
buildInputs = [
libnma
2020-03-15 15:44:08 +00:00
gtk3
networkmanager
libnotify
libsecret
gsettings-desktop-schemas
polkit
libgudev
modemmanager
jansson
glib
2020-03-15 15:44:08 +00:00
glib-networking
libappindicator-gtk3
gnome.adwaita-icon-theme
];
2020-03-15 15:44:08 +00:00
nativeBuildInputs = [
meson
ninja
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
'';
2018-03-07 05:09:32 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-07 05:09:32 +00:00
packageName = pname;
attrPath = "networkmanagerapplet";
versionPolicy = "odd-unstable";
2018-03-07 05:09:32 +00:00
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/network-manager-applet/";
description = "NetworkManager control applet for GNOME";
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;
};
}