lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 unstableGitUpdater,
6 replaceVars,
7 meson,
8 ninja,
9 pkg-config,
10 vala,
11 gtk3,
12 libindicator-gtk3,
13 pantheon,
14 indicator-application-gtk3,
15}:
16
17stdenv.mkDerivation {
18 pname = "wingpanel-indicator-ayatana";
19 version = "2.0.7-unstable-2023-04-18";
20
21 src = fetchFromGitHub {
22 owner = "Lafydev";
23 repo = "wingpanel-indicator-ayatana";
24 rev = "d554663b4e199d44c1f1d53b5cc39b9a775b3f1c";
25 sha256 = "sha256-dEk0exLh+TGuQt7be2YRTS2EzPD55+edR8WibthXwhI=";
26 };
27
28 patches = [
29 # Tells the indicator the path for libapplication.so
30 (replaceVars ./fix-libapplication-dir.patch {
31 indicator_application = indicator-application-gtk3;
32 })
33 ];
34
35 nativeBuildInputs = [
36 meson
37 ninja
38 pkg-config
39 vala
40 ];
41
42 buildInputs = [
43 gtk3
44 libindicator-gtk3
45 pantheon.granite
46 pantheon.wingpanel
47 ];
48
49 passthru = {
50 updateScript = unstableGitUpdater {
51 url = "https://github.com/Lafydev/wingpanel-indicator-ayatana.git";
52 };
53 };
54
55 meta = with lib; {
56 description = "Ayatana Compatibility Indicator for Wingpanel";
57 homepage = "https://github.com/Lafydev/wingpanel-indicator-ayatana";
58 license = licenses.lgpl21Plus;
59 platforms = platforms.linux;
60 teams = [ teams.pantheon ];
61 };
62}