Files
nixpkgs/pkgs/by-name/ce/celeste64/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

93 lines
1.9 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
makeDesktopItem,
copyDesktopItems,
SDL2,
libGL,
systemd,
libpulseaudio,
libselinux,
wayland,
libdecor,
xorg,
libxkbcommon,
libdrm,
withSELinux ? false,
}:
buildDotnetModule rec {
pname = "celeste64";
version = "1.1.1";
src = fetchFromGitHub {
repo = "Celeste64";
owner = "ExOK";
rev = "v${version}";
hash = "sha256-XRAjDYIqYaQYCWNNT7UuLDKDBgq3vqxtCzay7pGICtA=";
};
projectFile = "Celeste64.csproj";
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
nugetDeps = ./deps.json;
strictDeps = true;
executables = [ "Celeste64" ];
nativeBuildInputs = [ copyDesktopItems ];
runtimeDeps = [
libdecor
libGL
SDL2
systemd
libpulseaudio
wayland
libdrm
libxkbcommon
xorg.libX11
xorg.libXfixes
xorg.libXext
xorg.libXcursor
xorg.libXi
xorg.libXrandr
]
++ lib.optionals withSELinux [ libselinux ];
postInstall = ''
export ICON_DIR=$out/share/icons/hicolor/256x256/apps
mkdir -p $ICON_DIR
cp -r $src/Content $out/lib/$pname/
cp $src/Content/Models/Sources/logo1.png $ICON_DIR/Celeste64.png
'';
desktopItems = [
(makeDesktopItem {
name = "Celeste64";
exec = "Celeste64";
comment = meta.description;
desktopName = "Celeste64";
genericName = "Celeste64";
icon = "Celeste64";
categories = [ "Game" ];
})
];
meta = {
license = with lib.licenses; [
unfree
mit
];
platforms = [
"x86_64-linux"
"aarch64-linux"
"armv7l-linux"
];
maintainers = [ ];
mainProgram = "Celeste64";
homepage = "https://github.com/ExOK/Celeste64";
description = "Celeste 64: Fragments of the Mountain";
downloadPage = "https://maddymakesgamesinc.itch.io/celeste64";
};
}