nixpkgs/pkgs/tools/networking/networkmanager/applet/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

89 lines
1.6 KiB
Nix

{ lib, stdenv
, fetchurl
, meson
, ninja
, gettext
, pkg-config
, networkmanager
, gnome
, libsecret
, polkit
, modemmanager
, libnma
, glib-networking
, gsettings-desktop-schemas
, libgudev
, jansson
, wrapGAppsHook3
, gobject-introspection
, python3
, gtk3
, libayatana-appindicator
, glib
}:
stdenv.mkDerivation rec {
pname = "network-manager-applet";
version = "1.36.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-qEcESH6jr+FIXEf7KrWYuPd59UCuDcvwocX4XmSn4lM=";
};
mesonFlags = [
"-Dselinux=false"
"-Dappindicator=yes"
];
outputs = [ "out" "man" ];
buildInputs = [
libnma
gtk3
networkmanager
libsecret
gsettings-desktop-schemas
polkit
libgudev
modemmanager
jansson
glib
glib-networking
libayatana-appindicator
gnome.adwaita-icon-theme
];
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
wrapGAppsHook3
gobject-introspection
python3
];
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "networkmanagerapplet";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/network-manager-applet/";
description = "NetworkManager control applet for GNOME";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
mainProgram = "nm-applet";
platforms = platforms.linux;
};
}