about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2022-01-03 13:41:01 -0500
committerGitHub <noreply@github.com>2022-01-03 13:41:01 -0500
commitb84d1588669240bf6c70b7974efadad3105ecc42 (patch)
treeee337e26229625cee42bfdecd8b6cf06a6adc5a1 /pkgs/applications/video/kodi
parent63980ec2c90fbe3c70e2960b6bc7318a456093b1 (diff)
parentf99cd3fd08c023aab95ed5ed3cdddae0f81e5e0e (diff)
Merge pull request #152675 from jfly/issue-145116-kodi-wrapper-web-interface
kodi: copy web assets instead of symlinking
Diffstat (limited to 'pkgs/applications/video/kodi')
-rw-r--r--pkgs/applications/video/kodi/wrapper.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/video/kodi/wrapper.nix b/pkgs/applications/video/kodi/wrapper.nix
index 52b7679a325ea..2380d0023d576 100644
--- a/pkgs/applications/video/kodi/wrapper.nix
+++ b/pkgs/applications/video/kodi/wrapper.nix
@@ -35,5 +35,11 @@ buildEnv {
           (lib.concatMap
             (plugin: plugin.extraRuntimeDependencies or []) addons)}"
     done
+
+    # makeWrapper just created webinterface.default as a symlink. However,
+    # kodi's webserver carefully refuses to follow symlinks, so we need to copy
+    # these assets instead.
+    rm $out/share/kodi/addons/webinterface.default
+    cp -r ${kodi}/share/kodi/addons/webinterface.default/ $out/share/kodi/addons/webinterface.default
   '';
 }