8 appimageTools.wrapType2 rec {
13 name = "cider-linux-x64.AppImage";
14 url = "https://cidercollective.itch.io/cider";
15 sha256 = "18by764idifnjs5h2cydv4qjm7w95lzdlxjkscp289w3jdpbmd05";
18 nativeBuildInputs = [ makeWrapper ];
20 extraInstallCommands =
22 contents = appimageTools.extract {
24 # HACK: this looks for a ${pname}.desktop, where `cider-2.desktop` doesn't exist
29 wrapProgram $out/bin/${pname} \
30 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
31 --add-flags "--no-sandbox --disable-gpu-sandbox" # Cider 2 does not start up properly without these from my preliminary testing
33 install -m 444 -D ${contents}/Cider.desktop $out/share/applications/${pname}.desktop
34 substituteInPlace $out/share/applications/${pname}.desktop \
35 --replace-warn 'Exec=Cider' 'Exec=${pname}'
36 cp -r ${contents}/usr/share/icons $out/share
40 description = "Powerful music player that allows you listen to your favorite tracks with style";
41 homepage = "https://cider.sh";
42 license = lib.licenses.unfree;
43 mainProgram = "cider-2";
44 maintainers = with lib.maintainers; [ itsvic-dev ];
45 platforms = [ "x86_64-linux" ];