Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cider-2: init at 2.5.0 #347363

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9500,6 +9500,13 @@
email = "[email protected]";
keys = [ { fingerprint = "E681 4CAF 06AE B076 D55D 3E32 A16C DCBF 1472 541F"; } ];
};
itsvic-dev = {
email = "[email protected]";
name = "Victor B.";
github = "itsvic-dev";
githubId = 17727163;
keys = [ { fingerprint = "FBAA B86A 101B 4C5F D4F1 25D2 E93D DAC1 7E5D 6CA1"; } ];
};
ius = {
email = "[email protected]";
name = "Joerie de Gram";
Expand Down
47 changes: 47 additions & 0 deletions pkgs/by-name/ci/cider-2/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
appimageTools,
lib,
requireFile,
makeWrapper,
}:

appimageTools.wrapType2 rec {
pname = "cider-2";
version = "2.5.0";

src = requireFile {
name = "Cider-linux-appimage-x64.AppImage";
url = "https://cidercollective.itch.io/cider";
sha256 = "1nm35psq9ddii2c15kb03ifcn43fimvc4yzb4cpm1gqsiz4w21qz";
};

nativeBuildInputs = [ makeWrapper ];

extraInstallCommands =
let
contents = appimageTools.extract {
inherit version src;
# HACK: this looks for a ${pname}.desktop, where `cider-2.desktop` doesn't exist
pname = "cider";
};
in
''
wrapProgram $out/bin/${pname} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags "--no-sandbox --disable-gpu-sandbox" # Cider 2 does not start up properly without these from my preliminary testing

install -m 444 -D ${contents}/cider.desktop $out/share/applications/${pname}.desktop
substituteInPlace $out/share/applications/${pname}.desktop \
--replace-warn 'Exec=AppRun --no-sandbox' 'Exec=${pname}'
cp -r ${contents}/usr/share/icons $out/share
'';

meta = {
description = "Powerful music player that allows you listen to your favorite tracks with style";
homepage = "https://cider.sh";
license = lib.licenses.unfree;
mainProgram = "cider-2";
maintainers = with lib.maintainers; [ itsvic-dev ];
platforms = [ "x86_64-linux" ];
};
}