2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
gnome,
|
|
|
|
meson,
|
|
|
|
mesonEmulatorHook,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
gettext,
|
|
|
|
glib,
|
|
|
|
udev,
|
|
|
|
upower,
|
|
|
|
itstool,
|
|
|
|
libxml2,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
libnotify,
|
|
|
|
gsound,
|
|
|
|
gobject-introspection,
|
|
|
|
gtk-doc,
|
|
|
|
docbook-xsl-nons,
|
|
|
|
docbook_xml_dtd_43,
|
|
|
|
python3,
|
|
|
|
gsettings-desktop-schemas,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-05-20 23:08:51 +00:00
|
|
|
pname = "gnome-bluetooth";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "46.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
# TODO: split out "lib"
|
2024-09-19 14:19:46 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"devdoc"
|
|
|
|
"man"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-bluetooth/${lib.versions.major finalAttrs.version}/gnome-bluetooth-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-VsRKFwNFmOlgdFivrhvnXz3l798OYjVfCbpY/HvDEqw=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
pkg-config
|
|
|
|
libxml2
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2021-05-20 23:08:51 +00:00
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
python3
|
2024-09-19 14:19:46 +00:00
|
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2021-05-20 23:08:51 +00:00
|
|
|
udev
|
2022-03-30 09:31:56 +00:00
|
|
|
upower
|
2021-05-20 23:08:51 +00:00
|
|
|
libnotify
|
2022-03-30 09:31:56 +00:00
|
|
|
gsound
|
2021-05-20 23:08:51 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
mesonFlags = [ "-Dgtk_doc=true" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
2024-09-19 14:19:46 +00:00
|
|
|
packageName = "gnome-bluetooth";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-bluetooth";
|
2022-02-21 08:47:16 +00:00
|
|
|
description = "Application that lets you manage Bluetooth in the GNOME desktop";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bluetooth-sendto";
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
})
|