Unverified Commit 1ef792bc authored by Bobby Rong's avatar Bobby Rong Committed by GitHub
Browse files

Merge pull request #262172 from OPNA2608/fix/mate/indicator-applet_ayatana

mate.mate-indicator-applet: Use Ayatana indicators instead, fix new-s…
parents 125f1d62 c7c6805a
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
, pkg-config
, gettext
, gtk3
, libindicator-gtk3
, libayatana-indicator
, mate
, hicolor-icon-theme
, wrapGAppsHook
@@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
    sha256 = "144fh9f3lag2cqnmb6zxlh8k83ya8kha6rmd7r8gg3z5w3nzpyz4";
  };

  postPatch = ''
    # Find installed Unity & Ayatana (new-style) indicators
    substituteInPlace src/applet-main.c \
      --replace '/usr/share' '/run/current-system/sw/share'
  '';

  nativeBuildInputs = [
    pkg-config
    gettext
@@ -28,11 +34,13 @@ stdenv.mkDerivation rec {

  buildInputs = [
    gtk3
    libindicator-gtk3
    libayatana-indicator
    mate.mate-panel
    hicolor-icon-theme
  ];

  configureFlags = [ "--with-ayatana-indicators" ];

  enableParallelBuilding = true;

  passthru.updateScript = mateUpdateScript { inherit pname; };