mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
ayatana-indicator-bluetooth: init at 24.5.0
This commit is contained in:
parent
645018b0c4
commit
613f2d5124
82
pkgs/by-name/ay/ayatana-indicator-bluetooth/package.nix
Normal file
82
pkgs/by-name/ay/ayatana-indicator-bluetooth/package.nix
Normal file
@ -0,0 +1,82 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
cmake,
|
||||
gettext,
|
||||
glib,
|
||||
gobject-introspection,
|
||||
intltool,
|
||||
libayatana-common,
|
||||
lomiri,
|
||||
pkg-config,
|
||||
systemd,
|
||||
vala,
|
||||
wrapGAppsHook3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ayatana-indicator-bluetooth";
|
||||
version = "24.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AyatanaIndicators";
|
||||
repo = "ayatana-indicator-bluetooth";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-EreOhrlWbSZtwazsvwWsPji2iLfQxr2LbjCI13Hrb28=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace data/CMakeLists.txt \
|
||||
--replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})' \
|
||||
--replace-fail '/etc' "\''${CMAKE_INSTALL_SYSCONFDIR}"
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gettext
|
||||
gobject-introspection
|
||||
intltool
|
||||
pkg-config
|
||||
vala
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
lomiri.cmake-extras
|
||||
glib
|
||||
libayatana-common
|
||||
systemd
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "GSETTINGS_LOCALINSTALL" true)
|
||||
(lib.cmakeBool "GSETTINGS_COMPILE" true)
|
||||
];
|
||||
|
||||
passthru = {
|
||||
ayatana-indicators = {
|
||||
ayatana-indicator-bluetooth = [
|
||||
"ayatana"
|
||||
"lomiri"
|
||||
];
|
||||
};
|
||||
updateScript = gitUpdater { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Ayatana System Indicator for Bluetooth Management";
|
||||
longDescription = ''
|
||||
This Ayatana Indicator exposes bluetooth functionality via the system
|
||||
indicator API and provides fast user controls for Bluetooth devices.
|
||||
'';
|
||||
homepage = "https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth";
|
||||
changelog = "https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/blob/${finalAttrs.version}/ChangeLog";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ OPNA2608 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user