nuclear: 0.6.27 -> 0.6.30

This commit is contained in:
NotAShelf 2023-08-14 14:15:44 +03:00
parent 079f7bd05b
commit ccffaecb98
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -1,19 +1,19 @@
{
appimageTools,
lib,
fetchurl,
}: let
{ appimageTools
, lib
, fetchurl
}:
let
pname = "nuclear";
version = "0.6.27";
version = "0.6.30";
src = fetchurl {
url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}.AppImage";
hash = "sha256-vCtGuId2yMVIQrMZcjN1i2buV4sah2qKupbr4LhqMbA=";
hash = "sha256-he1uGC1M/nFcKpMM9JKY4oeexJcnzV0ZRxhTjtJz6xw=";
};
appimageContents = appimageTools.extract {inherit pname version src;};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
@ -21,13 +21,18 @@ in
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
cp -r ${appimageContents}/usr/share/icons $out/share
# unless linked, the binary is placed in $out/bin/nuclear-someVersion
# link it to $out/bin/nuclear
ln -s $out/bin/${pname}-${version} $out/bin/${pname}
'';
meta = with lib; {
description = "Streaming music player that finds free music for you";
homepage = "https://nuclear.js.org/";
license = licenses.agpl3Plus;
maintainers = with maintainers; [NotAShelf ivar];
platforms = ["x86_64-linux"];
maintainers = [ maintainers.NotAShelf ];
platforms = [ "x86_64-linux" ];
mainProgram = "nuclear";
};
}
}