depot/third_party/nixpkgs/pkgs/desktops/gnome/misc/gnome-applets/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

81 lines
1.5 KiB
Nix

{ lib, stdenv
, fetchurl
, gettext
, itstool
, libxml2
, pkg-config
, gnome-panel
, gtk3
, glib
, libwnck
, libgtop
, libnotify
, upower
, wirelesstools
, linuxPackages
, adwaita-icon-theme
, libgweather
, gucharmap
, tracker
, polkit
, gnome
}:
stdenv.mkDerivation rec {
pname = "gnome-applets";
version = "3.52.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-bz07QoZW/21bHT7lzLfs49Kxi1S/BFes9DtxHlXi1iw=";
};
nativeBuildInputs = [
gettext
itstool
pkg-config
libxml2
];
buildInputs = [
gnome-panel
gtk3
glib
libxml2
libwnck
libgtop
libnotify
upower
adwaita-icon-theme
libgweather
gucharmap
tracker
polkit
wirelesstools
linuxPackages.cpupower
];
enableParallelBuilding = true;
doCheck = true;
# 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";
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Applets for use with the GNOME panel";
mainProgram = "cpufreq-selector";
homepage = "https://gitlab.gnome.org/GNOME/gnome-applets";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}