diff options
author | Joshua Trees <me@jtrees.io> | 2022-09-06 21:23:03 +0200 |
---|---|---|
committer | Joshua Trees <me@jtrees.io> | 2022-09-06 21:23:03 +0200 |
commit | 593ab7df22a8a790558b25338697beb823d9d713 (patch) | |
tree | 9cf5f3a6497dbb09888dc3887c4a35dfa56764cb /pkgs/games/everspace | |
parent | 8ae3e986a75078ad4765d5f117ea9c477c4b1c63 (diff) |
everspace: add desktop file
Diffstat (limited to 'pkgs/games/everspace')
-rw-r--r-- | pkgs/games/everspace/default.nix | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/pkgs/games/everspace/default.nix b/pkgs/games/everspace/default.nix index 157a3bf45e938..abf568d6acab8 100644 --- a/pkgs/games/everspace/default.nix +++ b/pkgs/games/everspace/default.nix @@ -1,6 +1,6 @@ { # Packaging Dependencies - lib, stdenv, requireFile, autoPatchelfHook, unzip, + lib, stdenv, requireFile, autoPatchelfHook, unzip, copyDesktopItems, makeDesktopItem, # Everspace Dependencies cairo, gdk-pixbuf, pango, gtk2-x11, libGL, openal, @@ -11,7 +11,7 @@ # Known issues: # - Video playback (upon starting a new game) does not work (screen is black) -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "everspace"; version = "1.3.5.3655"; @@ -23,6 +23,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoPatchelfHook + copyDesktopItems unzip ]; @@ -89,9 +90,24 @@ stdenv.mkDerivation { mkdir -p "$out/bin" ln -s "$out/opt/everspace/game/RSG/Binaries/Linux/RSG-Linux-Shipping" "$out/bin/everspace" + mkdir -p "$out/share/pixmaps" + ln -s "$out/opt/everspace/support/icon.png" "$out/share/pixmaps/everspace-gog.png" + runHook postInstall ''; + desktopItems = [ + (makeDesktopItem { + type = "Application"; + name = "everspace-gog"; + desktopName = "EVERSPACEā¢"; + comment = meta.description; + exec = "everspace"; + icon = "everspace-gog"; + categories = [ "Game" ]; + }) + ]; + meta = with lib; { description = "Action-focused single-player space shooter with roguelike elements"; homepage = "https://classic.everspace-game.com/"; |