jellyfin-media-player: fix build on Darwin

- Stop removing web resources (it no longer seems necessary); and
- Enable aarch64-darwin
This commit is contained in:
Randy Eckenrode 2024-09-14 16:25:10 -04:00
parent 3727d51a8e
commit 8bf3d7c75a
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -77,11 +77,6 @@ mkDerivation rec {
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/bin $out/Applications mkdir -p $out/bin $out/Applications
mv "$out/Jellyfin Media Player.app" $out/Applications mv "$out/Jellyfin Media Player.app" $out/Applications
# move web-client resources
mv $out/Resources/* "$out/Applications/Jellyfin Media Player.app/Contents/Resources/"
rmdir $out/Resources
ln -s "$out/Applications/Jellyfin Media Player.app/Contents/MacOS/Jellyfin Media Player" $out/bin/jellyfinmediaplayer ln -s "$out/Applications/Jellyfin Media Player.app/Contents/MacOS/Jellyfin Media Player" $out/bin/jellyfinmediaplayer
''; '';
@ -89,7 +84,7 @@ mkDerivation rec {
homepage = "https://github.com/jellyfin/jellyfin-media-player"; homepage = "https://github.com/jellyfin/jellyfin-media-player";
description = "Jellyfin Desktop Client based on Plex Media Player"; description = "Jellyfin Desktop Client based on Plex Media Player";
license = with licenses; [ gpl2Only mit ]; license = with licenses; [ gpl2Only mit ];
platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]; platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
maintainers = with maintainers; [ jojosch kranzes ]; maintainers = with maintainers; [ jojosch kranzes ];
mainProgram = "jellyfinmediaplayer"; mainProgram = "jellyfinmediaplayer";
}; };