depot/third_party/nixpkgs/pkgs/by-name/gn/gnome-bluetooth/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

88 lines
1.6 KiB
Nix

{
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,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-bluetooth";
version = "46.1";
# TODO: split out "lib"
outputs = [
"out"
"dev"
"devdoc"
"man"
];
src = fetchurl {
url = "mirror://gnome/sources/gnome-bluetooth/${lib.versions.major finalAttrs.version}/gnome-bluetooth-${finalAttrs.version}.tar.xz";
hash = "sha256-VsRKFwNFmOlgdFivrhvnXz3l798OYjVfCbpY/HvDEqw=";
};
nativeBuildInputs = [
meson
ninja
gettext
itstool
pkg-config
libxml2
wrapGAppsHook4
gobject-introspection
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
python3
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ];
buildInputs = [
glib
gtk4
libadwaita
udev
upower
libnotify
gsound
gsettings-desktop-schemas
];
mesonFlags = [ "-Dgtk_doc=true" ];
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-bluetooth";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-bluetooth";
description = "Application that lets you manage Bluetooth in the GNOME desktop";
mainProgram = "bluetooth-sendto";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
})