24 , withDbus ? stdenv.hostPlatform.isLinux
28 pname = "jellyfin-media-player";
31 src = fetchFromGitHub {
33 repo = "jellyfin-media-player";
35 sha256 = "sha256-Jsn4kWQzUaQI9MpbsLJr6JSJk9ZSnMEcrebQ2DYegSU=";
39 # disable update notifications since the end user can't simply download the release artifacts to update
40 ./disable-update-notifications.patch
54 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
56 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
73 ] ++ lib.optionals (!withDbus) [
77 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
78 mkdir -p $out/bin $out/Applications
79 mv "$out/Jellyfin Media Player.app" $out/Applications
80 ln -s "$out/Applications/Jellyfin Media Player.app/Contents/MacOS/Jellyfin Media Player" $out/bin/jellyfinmediaplayer
84 homepage = "https://github.com/jellyfin/jellyfin-media-player";
85 description = "Jellyfin Desktop Client based on Plex Media Player";
86 license = with licenses; [ gpl2Only mit ];
87 platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
88 maintainers = with maintainers; [ jojosch kranzes ];
89 mainProgram = "jellyfinmediaplayer";