From fed120b28b16f59cce6870c905c3adb287c7fe8f Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Sun, 6 Oct 2024 00:08:12 +0530 Subject: [PATCH] feat: add jellyfin-web overlay with intro-skipper-plugin support Signed-off-by: Chinmay D. Pai --- overlays/jellyfin-web/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 overlays/jellyfin-web/default.nix 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 + ''; + }); +}