2024-05-15 15:35:15 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "plexamp";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.11.1";
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha512-miZACuT5kswIgdaYSFnYeoIUFtF6IRXKbLLrpOVga4UULgwnzinGehSNDd6feSyuDoKQhXIbDB/8eI4jERTS1A==";
|
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-09-19 14:19:46 +00:00
|
|
|
changelog = "https://forums.plex.tv/t/plexamp-release-notes/221280/75";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|