From e8efcbaca7cbb9103b4d8cb573cd0a6eaaa991b7 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sat, 14 Jan 2023 20:49:47 -0500 Subject: [PATCH] kodi: properly wrap kodi-send binary --- pkgs/applications/video/kodi/unwrapped.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/kodi/unwrapped.nix b/pkgs/applications/video/kodi/unwrapped.nix index 525ac2400bb3..05e594d80aa2 100644 --- a/pkgs/applications/video/kodi/unwrapped.nix +++ b/pkgs/applications/video/kodi/unwrapped.nix @@ -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 '';