2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2020-11-12 09:05:59 +00:00
|
|
|
, gettext
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
, libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gnome-panel
|
|
|
|
, gtk3
|
|
|
|
, glib
|
2021-06-28 23:13:55 +00:00
|
|
|
, libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
, libgtop
|
|
|
|
, libnotify
|
|
|
|
, upower
|
|
|
|
, wirelesstools
|
|
|
|
, linuxPackages
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, libgweather
|
|
|
|
, gucharmap
|
2021-05-20 23:08:51 +00:00
|
|
|
, tracker
|
2020-04-24 23:36:52 +00:00
|
|
|
, polkit
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-applets";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.52.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-bz07QoZW/21bHT7lzLfs49Kxi1S/BFes9DtxHlXi1iw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
gettext
|
2020-04-24 23:36:52 +00:00
|
|
|
itstool
|
2020-11-12 09:05:59 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome-panel
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libxml2
|
2021-06-28 23:13:55 +00:00
|
|
|
libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
libgtop
|
|
|
|
libnotify
|
|
|
|
upower
|
|
|
|
adwaita-icon-theme
|
|
|
|
libgweather
|
|
|
|
gucharmap
|
2021-05-20 23:08:51 +00:00
|
|
|
tracker
|
2020-04-24 23:36:52 +00:00
|
|
|
polkit
|
|
|
|
wirelesstools
|
|
|
|
linuxPackages.cpupower
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
# Don't try to install modules to gnome panel's directory, as it's read only
|
|
|
|
PKG_CONFIG_LIBGNOME_PANEL_MODULESDIR = "${placeholder "out"}/lib/gnome-panel/modules";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Applets for use with the GNOME panel";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cpufreq-selector";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-applets";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|