everspace: add desktop file
This commit is contained in:
parent
8ae3e986a7
commit
593ab7df22
1 changed files with 18 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
# Packaging Dependencies
|
# Packaging Dependencies
|
||||||
lib, stdenv, requireFile, autoPatchelfHook, unzip,
|
lib, stdenv, requireFile, autoPatchelfHook, unzip, copyDesktopItems, makeDesktopItem,
|
||||||
|
|
||||||
# Everspace Dependencies
|
# Everspace Dependencies
|
||||||
cairo, gdk-pixbuf, pango, gtk2-x11, libGL, openal,
|
cairo, gdk-pixbuf, pango, gtk2-x11, libGL, openal,
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
# Known issues:
|
# Known issues:
|
||||||
# - Video playback (upon starting a new game) does not work (screen is black)
|
# - Video playback (upon starting a new game) does not work (screen is black)
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "everspace";
|
pname = "everspace";
|
||||||
version = "1.3.5.3655";
|
version = "1.3.5.3655";
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
|
copyDesktopItems
|
||||||
unzip
|
unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -89,9 +90,24 @@ stdenv.mkDerivation {
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
ln -s "$out/opt/everspace/game/RSG/Binaries/Linux/RSG-Linux-Shipping" "$out/bin/everspace"
|
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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
type = "Application";
|
||||||
|
name = "everspace-gog";
|
||||||
|
desktopName = "EVERSPACE™";
|
||||||
|
comment = meta.description;
|
||||||
|
exec = "everspace";
|
||||||
|
icon = "everspace-gog";
|
||||||
|
categories = [ "Game" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Action-focused single-player space shooter with roguelike elements";
|
description = "Action-focused single-player space shooter with roguelike elements";
|
||||||
homepage = "https://classic.everspace-game.com/";
|
homepage = "https://classic.everspace-game.com/";
|
||||||
|
|
Loading…
Reference in a new issue