feat: add jellyfin-web overlay with intro-skipper-plugin support

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2024-10-06 00:08:12 +05:30
parent 8e6c452854
commit fed120b28b
Signed by: thunderbottom
GPG Key ID: 75507BE256F40CED

View File

@ -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#</head>#<script src=\"configurationpage?name=skip-intro-button.js\"></script></head>#" dist/index.html
mkdir -p $out/share
cp -a dist $out/share/jellyfin-web
runHook postInstall
'';
});
}