2024-04-21 15:54:59 +00:00
|
|
|
{ appimageTools, lib, fetchurl, makeWrapper}:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
pname = "cider";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.6.3";
|
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-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-NwoV1eeAN0u9VXWpu5mANXhmgqe8u3h7BlsREP1f/pI=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraInstallCommands =
|
|
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in ''
|
2024-04-21 15:54:59 +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-30 09:31:56 +00:00
|
|
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-warn 'Exec=AppRun' 'Exec=${pname}'
|
2022-03-30 09:31:56 +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-04-21 15:54:59 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
mainProgram = "cider";
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = [ maintainers.cigrainger ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|