2022-03-30 09:31:56 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "cider";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.6.2";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-24 13:37:59 +00:00
|
|
|
url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-43QmTnFp8raEyZO5NK/UlRM8Ykd0y4iaYlL3MpROmsk=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraInstallCommands =
|
|
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in ''
|
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
|
|
|
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${contents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A new look into listening and enjoying Apple Music in style and performance.";
|
|
|
|
homepage = "https://github.com/ciderapp/Cider";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = [ maintainers.cigrainger ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "cider";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|