celeste64: add desktop item

This commit is contained in:
Artemis Tosini 2024-01-30 23:57:19 +00:00
parent 2fbe7194f6
commit f9a7439228
Signed by: artemist
GPG key ID: EE5227935FE3FF18

View file

@ -1,7 +1,8 @@
{ lib, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, libGL, stdenv
, systemdLibs, libpulseaudio, wayland, libdecor, libxkbcommon }:
buildDotnetModule {
pname = "Celeste64";
, systemdLibs, libpulseaudio, wayland, libdecor, libxkbcommon, makeDesktopItem
, copyDesktopItems }:
buildDotnetModule rec {
pname = "celeste64";
version = "1.0.1";
src = fetchFromGitHub {
@ -18,6 +19,18 @@ buildDotnetModule {
executables = [ "Celeste64" ];
projectFile = "Celeste64.csproj";
nativeBuildInputs = [ copyDesktopItems ];
desktopItems = [
(makeDesktopItem rec {
name = "Celeste64";
desktopName = name;
exec = name;
icon = name;
comment = meta.description;
categories = [ "Game" ];
})
];
runtimeDeps = [
stdenv.cc.cc.lib
libGL
@ -29,7 +42,8 @@ buildDotnetModule {
];
preFixup = ''
cp -r ./Content $out/lib/Celeste64/Content
cp -r ./Content $out/lib/celeste64/Content
install -D ./Content/Sprites/icon_strawberry.png $out/share/icons/hicolor/128x128/apps/Celeste64.png
'';
meta = with lib; {