1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 pkg-config,
7 meson,
8 ninja,
9 vala,
10 gtk3,
11 glib,
12 granite,
13 libnotify,
14 wingpanel,
15 libgee,
16 libxml2,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "wingpanel-indicator-bluetooth";
21 version = "8.0.0";
22
23 src = fetchFromGitHub {
24 owner = "elementary";
25 repo = pname;
26 rev = version;
27 sha256 = "sha256-N0ehiK8sYAZ/3Lu2u7dut7ZflroFptALFCxjbI0++BA=";
28 };
29
30 nativeBuildInputs = [
31 glib # for glib-compile-schemas
32 libxml2
33 meson
34 ninja
35 pkg-config
36 vala
37 ];
38
39 buildInputs = [
40 glib
41 granite
42 gtk3
43 libgee
44 libnotify
45 wingpanel
46 ];
47
48 passthru = {
49 updateScript = nix-update-script { };
50 };
51
52 meta = with lib; {
53 description = "Bluetooth Indicator for Wingpanel";
54 mainProgram = "io.elementary.bluetooth";
55 homepage = "https://github.com/elementary/wingpanel-indicator-bluetooth";
56 license = licenses.lgpl21Plus;
57 platforms = platforms.linux;
58 teams = [ teams.pantheon ];
59 };
60}