nix: add xdg-dbus-proxy to PATH via wrapProgram

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-09 04:37:12 +09:00
parent e5b3fa02f9
commit cdc08817a7

View File

@@ -1,7 +1,10 @@
{
lib,
buildGoModule,
makeBinaryWrapper,
xdg-dbus-proxy,
acl,
xorg,
buildGoModule,
}:
buildGoModule rec {
@@ -22,4 +25,10 @@ buildGoModule rec {
acl
xorg.libxcb
];
nativeBuildInputs = [ makeBinaryWrapper ];
postInstall = ''
wrapProgram $out/bin/${pname} --prefix PATH : ${lib.makeBinPath [ xdg-dbus-proxy ]}
'';
}