Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Cider

Prepare for a fresh, reimagined experience with Cider – your favorite Apple Music client! · By Cider Collective

Install on NixOS?

A topic by hiddenretro created Jul 21, 2024 Views: 321 Replies: 2
Viewing posts 1 to 3

I am wanting to move my main distro over to NixOS, but their community package has the free version. Has anyone installed this on NixOS?

use distrobox/toolbox maybe

(1 edit)

I managed to hack this together for the AppImage

default.nix
{ lib, makeWrapper, appimageTools }:

appimageTools.wrapType2 rec {

  pname = "Cider-2";

  version = "2.4.1";

  src = ./Cider.AppImage;

  extraInstallCommands = ''

    source "${makeWrapper}/nix-support/setup-hook"

    wrapProgram $out/bin/${pname} --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"

    install -m 444 -D ${src} -t $out/bin

  '';

  meta = with lib; {

    description = "New look into listening and enjoying Apple Music in style and performance";

    homepage = "https://github.com/ciderapp/Cider";

    license = licenses.agpl3Only;

    mainProgram = "cider";

    maintainers = [ maintainers.cigrainger ];

    platforms = [ "x86_64-linux" ];

  };

}