feat: add jellyfin-web overlay with intro-skipper-plugin support
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
8e6c452854
commit
fed120b28b
17
overlays/jellyfin-web/default.nix
Normal file
17
overlays/jellyfin-web/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user