diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2021-08-07 20:32:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 20:32:00 +0200 |
commit | 8fa19a7a6c8ca33dd57a7596523a2a95146ee1ca (patch) | |
tree | a207aa8921f492e97bef5a2843375c90ba143f45 /pkgs/games/dhewm3/default.nix | |
parent | a537bad8a15f5d81e0d86bb4c5c3310295dd7cfc (diff) | |
parent | f7ae4163e027ad6269e6f51a7f9d0726a97be96b (diff) |
Merge pull request #132826 from svanderburg/add-desktopitems
Add desktopitems for some classic games
Diffstat (limited to 'pkgs/games/dhewm3/default.nix')
-rw-r--r-- | pkgs/games/dhewm3/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/games/dhewm3/default.nix b/pkgs/games/dhewm3/default.nix index e0590403f7b4..a87236c48f4a 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; { |