13 url = "https://plexamp.plex.tv/plexamp.plex.tv/desktop/Plexamp-${version}.AppImage";
14 name = "${pname}-${version}.AppImage";
15 hash = "sha512-cNBupLFHhq7GDoj/QYGsS0UShTKmDpf/JxBZS92VwTCuuBjScTMGF0cETGEYYnvxqv4vf9MSKNY0/HW9CuguaA==";
18 appimageContents = appimageTools.extractType2 {
19 inherit pname version src;
22 appimageTools.wrapType2 {
23 inherit pname version src;
25 extraInstallCommands = ''
26 install -m 444 -D ${appimageContents}/plexamp.desktop $out/share/applications/plexamp.desktop
27 install -m 444 -D ${appimageContents}/plexamp.svg \
28 $out/share/icons/hicolor/scalable/apps/plexamp.svg
29 substituteInPlace $out/share/applications/${pname}.desktop \
30 --replace 'Exec=AppRun' 'Exec=${pname}'
31 source "${makeWrapper}/nix-support/setup-hook"
32 wrapProgram "$out/bin/plexamp" \
33 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
36 passthru.updateScript = ./update-plexamp.sh;
39 description = "Beautiful Plex music player for audiophiles, curators, and hipsters";
40 homepage = "https://plexamp.com/";
41 changelog = "https://forums.plex.tv/t/plexamp-release-notes/221280/76";
42 license = licenses.unfree;
43 maintainers = with maintainers; [
48 platforms = [ "x86_64-linux" ];