diff --git a/overlays/jellyfin-web/default.nix b/overlays/jellyfin-web/default.nix new file mode 100644 index 0000000..4f33e44 --- /dev/null +++ b/overlays/jellyfin-web/default.nix @@ -0,0 +1,17 @@ +# Add support for intro-skipper-button +# Ref: https://wiki.nixos.org/wiki/Jellyfin#Intro_Skipper_plugin +_: _self: super: { + jellyfin-web = super.jellyfin-web.overrideAttrs (finalAttrs: previousAttrs: { + installPhase = '' + runHook preInstall + + # this is the important line + sed -i "s###" dist/index.html + + mkdir -p $out/share + cp -a dist $out/share/jellyfin-web + + runHook postInstall + ''; + }); +}