diff --git a/packages/celeste64/default.nix b/packages/celeste64/default.nix index 8ef42ff..40a53a9 100644 --- a/packages/celeste64/default.nix +++ b/packages/celeste64/default.nix @@ -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; {