btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / wi / wingpanel-indicator-ayatana / package.nix
blobc3c24b02401aac469329a3e9f972a8594a980e03
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , unstableGitUpdater
5 , substituteAll
6 , meson
7 , ninja
8 , pkg-config
9 , vala
10 , gtk3
11 , libindicator-gtk3
12 , pantheon
13 , indicator-application-gtk3
16 stdenv.mkDerivation rec {
17   pname = "wingpanel-indicator-ayatana";
18   version = "2.0.7-unstable-2023-04-18";
20   src = fetchFromGitHub {
21     owner = "Lafydev";
22     repo = pname;
23     rev = "d554663b4e199d44c1f1d53b5cc39b9a775b3f1c";
24     sha256 = "sha256-dEk0exLh+TGuQt7be2YRTS2EzPD55+edR8WibthXwhI=";
25   };
27   patches = [
28     # Tells the indicator the path for libapplication.so
29     (substituteAll {
30       src = ./fix-libapplication-dir.patch;
31       indicator_application = indicator-application-gtk3;
32     })
33   ];
35   nativeBuildInputs = [
36     meson
37     ninja
38     pkg-config
39     vala
40   ];
42   buildInputs = [
43     gtk3
44     libindicator-gtk3
45     pantheon.granite
46     pantheon.wingpanel
47   ];
49   passthru = {
50     updateScript = unstableGitUpdater {
51       url = "https://github.com/Lafydev/wingpanel-indicator-ayatana.git";
52     };
53   };
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     maintainers = teams.pantheon.members;
61   };