1 { appimageTools, lib, fetchurl, makeWrapper}:
3 appimageTools.wrapType2 rec {
8 url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage";
9 sha256 = "sha256-NwoV1eeAN0u9VXWpu5mANXhmgqe8u3h7BlsREP1f/pI=";
12 nativeBuildInputs = [ makeWrapper ];
14 extraInstallCommands =
15 let contents = appimageTools.extract { inherit pname version src; };
17 wrapProgram $out/bin/${pname} \
18 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
20 install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
21 substituteInPlace $out/share/applications/${pname}.desktop \
22 --replace-warn 'Exec=AppRun' 'Exec=${pname}'
23 cp -r ${contents}/usr/share/icons $out/share
27 description = "New look into listening and enjoying Apple Music in style and performance";
28 homepage = "https://github.com/ciderapp/Cider";
29 license = licenses.agpl3Only;
30 mainProgram = "cider";
31 maintainers = [ maintainers.cigrainger ];
32 platforms = [ "x86_64-linux" ];