Fix JellyfinMediaPlayer

This commit is contained in:
GHOSCHT 2025-03-26 21:32:56 +01:00
parent e40b005646
commit 2874670771
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -1,7 +1,7 @@
# This file defines overlays
{inputs, ...}: {
{ inputs, ... }: {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs {pkgs = final;};
additions = final: _prev: import ../pkgs { pkgs = final; };
# Third party overlays
# nh = inputs.nh.overlays.default; //not needed anymore but example how to use it
@ -12,25 +12,33 @@
flake-inputs = final: _: {
inputs =
builtins.mapAttrs
(
_: flake: let
legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
packages = (flake.packages or {}).${final.system} or {};
in
if legacyPackages != {}
then legacyPackages
else packages
)
inputs;
(
_: flake:
let
legacyPackages = (flake.legacyPackages or { }).${final.system} or { };
packages = (flake.packages or { }).${final.system} or { };
in
if legacyPackages != { }
then legacyPackages
else packages
)
inputs;
};
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
# fixes Cannot load libcuda.so.1 (no tonemapping) and wayland EGL_BAD_CONTEXT
jellyfin-media-player = prev.jellyfin-media-player.overrideAttrs {
version = "1.12.0";
src = prev.fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-media-player";
rev = "v1.12.0";
sha256 = "sha256-IXinyenadnW+a+anQ9e61h+N8vG2r77JPboHm5dN4Iw=";
};
};
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will