Unverified Commit 81df7a1e authored by dish's avatar dish Committed by GitHub
Browse files

wl-tray-bridge: init at 0.1.0-unstable-2026-02-16 (#496570)

parents 4fdbc9ad 3a151be7
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  cairo,
  fetchFromGitHub,
  nix-update-script,
  pango,
  patchelf,
  pkg-config,
  wayland,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "wl-tray-bridge";
  version = "0.1.0-unstable-2026-02-16";

  src = fetchFromGitHub {
    owner = "mahkoh";
    repo = "wl-tray-bridge";
    rev = "04cb349720f266917b5490e4a02f08d6ddf3f233";
    hash = "sha256-pYmFEqMMEsSTYBwxbD2l2F+lO7WuVt1FFmnkCCoaXf0=";
  };

  cargoHash = "sha256-TM3Jsgmp5idFIOMm+qz0rNEWEhcGeQywF7ZmKlg6CXg=";

  nativeBuildInputs = [
    patchelf
    pkg-config
  ];

  buildInputs = [
    cairo
    pango
  ];

  postFixup = ''
    patchelf --add-rpath ${lib.makeLibraryPath [ wayland ]} $out/bin/wl-tray-bridge
  '';

  passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };

  meta = {
    description = "Bridges the gap between the StatusNotifierItem protocols and wayland compositors implementing jay-tray-v1";
    homepage = "https://github.com/mahkoh/wl-tray-bridge";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ uku3lig ];
    mainProgram = "wl-tray-bridge";
  };
})