2024-05-15 15:35:15 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "plexamp";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.11.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://plexamp.plex.tv/plexamp.plex.tv/desktop/Plexamp-${version}.AppImage";
|
2024-06-20 14:57:18 +00:00
|
|
|
name = "${pname}-${version}.AppImage";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha512-t5ImqZvwKrZoobXFHX8wfQBQBPnAp4rJq4p1GLG/6CxAeKYuYMTPr7+xjwVqhGm/DGw7vSVY9sdMyFodq8rJ2A==";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit pname version src;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
2024-06-20 14:57:18 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit pname version src;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/plexamp.desktop $out/share/applications/plexamp.desktop
|
2024-06-20 14:57:18 +00:00
|
|
|
install -m 444 -D ${appimageContents}/plexamp.svg \
|
|
|
|
$out/share/icons/hicolor/scalable/apps/plexamp.svg
|
2021-04-18 02:13:31 +00:00
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
2020-08-20 17:08:02 +00:00
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
passthru.updateScript = ./update-plexamp.sh;
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Beautiful Plex music player for audiophiles, curators, and hipsters";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://plexamp.com/";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://forums.plex.tv/t/plexamp-release-notes/221280/74";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.unfree;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ killercup redhawk synthetica ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|