celeste64: add desktop item
This commit is contained in:
parent
2fbe7194f6
commit
f9a7439228
|
@ -1,7 +1,8 @@
|
||||||
{ lib, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, libGL, stdenv
|
{ lib, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, libGL, stdenv
|
||||||
, systemdLibs, libpulseaudio, wayland, libdecor, libxkbcommon }:
|
, systemdLibs, libpulseaudio, wayland, libdecor, libxkbcommon, makeDesktopItem
|
||||||
buildDotnetModule {
|
, copyDesktopItems }:
|
||||||
pname = "Celeste64";
|
buildDotnetModule rec {
|
||||||
|
pname = "celeste64";
|
||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -18,6 +19,18 @@ buildDotnetModule {
|
||||||
executables = [ "Celeste64" ];
|
executables = [ "Celeste64" ];
|
||||||
projectFile = "Celeste64.csproj";
|
projectFile = "Celeste64.csproj";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem rec {
|
||||||
|
name = "Celeste64";
|
||||||
|
desktopName = name;
|
||||||
|
exec = name;
|
||||||
|
icon = name;
|
||||||
|
comment = meta.description;
|
||||||
|
categories = [ "Game" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
runtimeDeps = [
|
runtimeDeps = [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
libGL
|
libGL
|
||||||
|
@ -29,7 +42,8 @@ buildDotnetModule {
|
||||||
];
|
];
|
||||||
|
|
||||||
preFixup = ''
|
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; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue