2024-02-09 10:34:43 +00:00
|
|
|
{ appimageTools, lib, fetchurl, makeWrapper}:
|
2022-03-14 03:38:02 +00:00
|
|
|
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "cider";
|
2023-11-18 14:58:01 +00:00
|
|
|
version = "1.6.2";
|
2022-03-14 03:38:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-18 20:58:21 +00:00
|
|
|
url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage";
|
2023-11-18 14:58:01 +00:00
|
|
|
sha256 = "sha256-43QmTnFp8raEyZO5NK/UlRM8Ykd0y4iaYlL3MpROmsk=";
|
2022-03-14 03:38:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraInstallCommands =
|
|
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in ''
|
2024-02-09 10:34:43 +00:00
|
|
|
source "${makeWrapper}/nix-support/setup-hook"
|
|
|
|
wrapProgram $out/bin/${pname} \
|
|
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
|
|
|
|
2022-03-14 03:38:02 +00:00
|
|
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
2024-02-09 10:34:43 +00:00
|
|
|
--replace-warn 'Exec=AppRun' 'Exec=${pname}'
|
2022-03-14 03:38:02 +00:00
|
|
|
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";
|
2024-03-19 12:26:06 +00:00
|
|
|
license = licenses.agpl3Only;
|
2024-02-09 10:34:43 +00:00
|
|
|
mainProgram = "cider";
|
2022-03-14 03:38:02 +00:00
|
|
|
maintainers = [ maintainers.cigrainger ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|