2023-10-09 19:29:22 +00:00
|
|
|
{ appimageTools
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
}:
|
|
|
|
let
|
2020-11-24 20:58:05 +00:00
|
|
|
pname = "nuclear";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.6.30";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-22 20:05:09 +00:00
|
|
|
url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}.AppImage";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-he1uGC1M/nFcKpMM9JKY4oeexJcnzV0ZRxhTjtJz6xw=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
2023-08-22 20:05:09 +00:00
|
|
|
in
|
2023-10-09 19:29:22 +00:00
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Streaming music player that finds free music for you";
|
|
|
|
homepage = "https://nuclear.js.org/";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = [ maintainers.NotAShelf ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
mainProgram = "nuclear";
|
|
|
|
};
|
|
|
|
}
|