11 # Nuclear currenntly only publishes AppImage releases for x86_64, which is hardcoded in
12 # the package name. We also hardcode the host arch in the release name, but should upstream
13 # provide more arches, we should use stdenv.hostPlatform to determine the arch and choose
14 # source URL accordingly.
15 url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}-x86_64.AppImage";
16 hash = "sha256-X5IQ9NlFTFTEYDhuCyrzkPGmvNK66nCSdbmJZxObkBo=";
19 appimageContents = appimageTools.extract { inherit pname version src; };
21 appimageTools.wrapType2 {
22 inherit pname version src;
24 extraInstallCommands = ''
25 install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
26 substituteInPlace $out/share/applications/${pname}.desktop \
27 --replace-fail 'Exec=AppRun' 'Exec=${pname}'
28 cp -r ${appimageContents}/usr/share/icons $out/share
32 description = "Streaming music player that finds free music for you";
33 homepage = "https://nuclear.js.org/";
34 license = lib.licenses.agpl3Plus;
35 maintainers = [ lib.maintainers.NotAShelf ];
36 platforms = [ "x86_64-linux" ];
37 mainProgram = "nuclear";