summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-08-06 00:04:39 +0200
committerSander van der Burg <svanderburg@gmail.com>2021-08-06 22:14:47 +0200
commitf7ae4163e027ad6269e6f51a7f9d0726a97be96b (patch)
tree20af1698b33ac6be1c66b2db7b70e00613bb44e4
parent55c21071de9d58498166ad96ddb157a4f5051702 (diff)
dhewm: add desktop item
-rw-r--r--pkgs/games/dhewm3/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/games/dhewm3/default.nix b/pkgs/games/dhewm3/default.nix
index b5caa603eaf8..beb037dc240a 100644
--- a/pkgs/games/dhewm3/default.nix
+++ b/pkgs/games/dhewm3/default.nix
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
-, openal, curl }:
+, openal, curl, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec {
pname = "dhewm3";
@@ -21,9 +21,18 @@ stdenv.mkDerivation rec {
cd "$(ls -d dhewm3-*.src)"/neo
'';
- nativeBuildInputs = [ cmake ];
+ nativeBuildInputs = [ cmake copyDesktopItems ];
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
+ desktopItems = [
+ (makeDesktopItem {
+ name = "dhewm3";
+ exec = "dhewm3";
+ desktopName = "Doom 3";
+ categories = "Game;";
+ })
+ ];
+
hardeningDisable = [ "format" ];
meta = with lib; {