nuclear: 0.6.27 -> 0.6.30
This commit is contained in:
parent
079f7bd05b
commit
ccffaecb98
1 changed files with 29 additions and 24 deletions
|
@ -1,33 +1,38 @@
|
||||||
{
|
{ appimageTools
|
||||||
appimageTools,
|
, lib
|
||||||
lib,
|
, fetchurl
|
||||||
fetchurl,
|
}:
|
||||||
}: let
|
let
|
||||||
pname = "nuclear";
|
pname = "nuclear";
|
||||||
version = "0.6.27";
|
version = "0.6.30";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/nukeop/nuclear/releases/download/v${version}/${pname}-v${version}.AppImage";
|
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
|
in
|
||||||
appimageTools.wrapType2 {
|
appimageTools.wrapType2 {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
# unless linked, the binary is placed in $out/bin/nuclear-someVersion
|
||||||
description = "Streaming music player that finds free music for you";
|
# link it to $out/bin/nuclear
|
||||||
homepage = "https://nuclear.js.org/";
|
ln -s $out/bin/${pname}-${version} $out/bin/${pname}
|
||||||
license = licenses.agpl3Plus;
|
'';
|
||||||
maintainers = with maintainers; [NotAShelf ivar];
|
|
||||||
platforms = ["x86_64-linux"];
|
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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue