26 , withDbus ? stdenv.isLinux, dbus
30 pname = "jellyfin-media-player";
33 src = fetchFromGitHub {
35 repo = "jellyfin-media-player";
37 sha256 = "sha256-97/9UYXOsg8v7QoRqo5rh0UGhjjS85K9OvUwtlG249c=";
41 # fix the location of the jellyfin-web path
43 # disable update notifications since the end user can't simply download the release artifacts to update
44 ./disable-update-notifications.patch
58 ] ++ lib.optionals stdenv.isLinux [
60 ] ++ lib.optionals stdenv.isDarwin [
77 ] ++ lib.optionals (!withDbus) [
82 # link the jellyfin-web files to be copied by cmake (see fix-web-path.patch)
83 ln -s ${jellyfin-web}/share/jellyfin-web .
86 postInstall = lib.optionalString stdenv.isDarwin ''
87 mkdir -p $out/bin $out/Applications
88 mv "$out/Jellyfin Media Player.app" $out/Applications
90 # move web-client resources
91 mv $out/Resources/* "$out/Applications/Jellyfin Media Player.app/Contents/Resources/"
94 ln -s "$out/Applications/Jellyfin Media Player.app/Contents/MacOS/Jellyfin Media Player" $out/bin/jellyfinmediaplayer
98 homepage = "https://github.com/jellyfin/jellyfin-media-player";
99 description = "Jellyfin Desktop Client based on Plex Media Player";
100 license = with licenses; [ gpl2Only mit ];
101 platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
102 maintainers = with maintainers; [ jojosch kranzes ];
103 mainProgram = "jellyfinmediaplayer";