kodi: properly wrap kodi-send binary

This commit is contained in:
Aaron Andersen 2023-01-14 20:49:47 -05:00 committed by Peter Hoeg
parent 11da253ac9
commit e8efcbaca7

View file

@ -233,7 +233,8 @@ in stdenv.mkDerivation {
'';
postInstall = ''
for p in $(ls $out/bin/) ; do
# TODO: figure out which binaries should be wrapped this way and which shouldn't
for p in $(ls --ignore=kodi-send $out/bin/) ; do
wrapProgram $out/bin/$p \
--prefix PATH ":" "${lib.makeBinPath ([ python3Packages.python glxinfo ]
++ lib.optional x11Support xdpyinfo ++ lib.optional sambaSupport samba)}" \
@ -243,6 +244,9 @@ in stdenv.mkDerivation {
++ lib.optional rtmpSupport rtmpdump)}"
done
wrapProgram $out/bin/kodi-send \
--prefix PYTHONPATH : $out/${python3Packages.python.sitePackages}
substituteInPlace $out/share/xsessions/kodi.desktop \
--replace kodi-standalone $out/bin/kodi-standalone
'';