HI there!
I’m trying to switch from kodi (so long and thanks for the headaches!
) to jellyfin-media-player as main player of my HTPC.
I saw that JMP is basically the web client + mpv, and it can be extended with mpv scripts by placing them in ~/.local/share/jellyfinmediaplayer/scripts/.
Is there a way to port what has been done with mpvScripts to jellyfin-media-player?
What’s the correct/best way to do this?
I tried something like that (overriding mpv and then use it to override jmp), but as I suspected it doesn’t work.
overlays = [
(final: prev: rec{
mpv = prev.mpv.override {
mpv = prev.mpv-unwrapped.override {
sdl2Support = true; # for joypad
};
scripts =[ <my scripts here> ];
};
jellyfin-media-player = prev.jellyfin-media-player.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ mpv ];
});
};)
];
I can’t think of anything else beside add the script manually or create separate derivations, but I’m checking in to see if it’s just my lack of nix knowledge that prevents me to find the obvious path to this