From b5228d2b3a77368ac5faa57403509ac88f80f44c Mon Sep 17 00:00:00 2001 From: sodiboo Date: Thu, 11 Jul 2024 19:36:33 +0200 Subject: [PATCH 1/2] xwayland-satellite: correctly pass xwayland dependency in PATH --- pkgs/by-name/xw/xwayland-satellite/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/xw/xwayland-satellite/package.nix b/pkgs/by-name/xw/xwayland-satellite/package.nix index bf8f60dc095f..89eae39fafd8 100644 --- a/pkgs/by-name/xw/xwayland-satellite/package.nix +++ b/pkgs/by-name/xw/xwayland-satellite/package.nix @@ -6,6 +6,7 @@ , xcb-util-cursor , libxcb , nix-update-script +, makeWrapper }: rustPlatform.buildRustPackage rec { @@ -24,10 +25,10 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook + makeWrapper ]; buildInputs = [ - xwayland libxcb xcb-util-cursor ]; @@ -43,6 +44,11 @@ rustPlatform.buildRustPackage rec { "--skip=toplevel_flow" ]; + postInstall = '' + wrapProgram $out/bin/xwayland-satellite \ + --prefix PATH : "${lib.makeBinPath [xwayland]}" + ''; + passthru.updateScript = nix-update-script { }; meta = with lib; { From 535597b70c6c43b94408961be7680623e23b8d63 Mon Sep 17 00:00:00 2001 From: sodiboo Date: Fri, 12 Jul 2024 08:11:30 +0200 Subject: [PATCH 2/2] xwayland-satellite: add sodiboo as maintainer --- pkgs/by-name/xw/xwayland-satellite/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/xw/xwayland-satellite/package.nix b/pkgs/by-name/xw/xwayland-satellite/package.nix index 89eae39fafd8..428cc3a86598 100644 --- a/pkgs/by-name/xw/xwayland-satellite/package.nix +++ b/pkgs/by-name/xw/xwayland-satellite/package.nix @@ -55,7 +55,7 @@ rustPlatform.buildRustPackage rec { description = "Rootless Xwayland integration to any Wayland compositor implementing xdg_wm_base"; homepage = "https://github.com/Supreeeme/xwayland-satellite"; license = licenses.mpl20; - maintainers = with maintainers; [ if-loop69420 ]; + maintainers = with maintainers; [ if-loop69420 sodiboo ]; mainProgram = "xwayland-satellite"; platforms = platforms.linux; };