1 { lib, fetchurl, appimageTools, makeWrapper }:
8 url = "https://plexamp.plex.tv/plexamp.plex.tv/desktop/Plexamp-${version}.AppImage";
9 name = "${pname}-${version}.AppImage";
10 hash = "sha512-cNBupLFHhq7GDoj/QYGsS0UShTKmDpf/JxBZS92VwTCuuBjScTMGF0cETGEYYnvxqv4vf9MSKNY0/HW9CuguaA==";
13 appimageContents = appimageTools.extractType2 {
14 inherit pname version src;
17 appimageTools.wrapType2 {
18 inherit pname version src;
20 extraInstallCommands = ''
21 install -m 444 -D ${appimageContents}/plexamp.desktop $out/share/applications/plexamp.desktop
22 install -m 444 -D ${appimageContents}/plexamp.svg \
23 $out/share/icons/hicolor/scalable/apps/plexamp.svg
24 substituteInPlace $out/share/applications/${pname}.desktop \
25 --replace 'Exec=AppRun' 'Exec=${pname}'
26 source "${makeWrapper}/nix-support/setup-hook"
27 wrapProgram "$out/bin/plexamp" \
28 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
31 passthru.updateScript = ./update-plexamp.sh;
34 description = "Beautiful Plex music player for audiophiles, curators, and hipsters";
35 homepage = "https://plexamp.com/";
36 changelog = "https://forums.plex.tv/t/plexamp-release-notes/221280/76";
37 license = licenses.unfree;
38 maintainers = with maintainers; [ killercup redhawk synthetica ];
39 platforms = [ "x86_64-linux" ];