dhewm: add desktop item

(cherry picked from commit f7ae4163e027ad6269e6f51a7f9d0726a97be96b)
This commit is contained in:
Sander van der Burg 2021-08-06 00:04:39 +02:00
parent b6e71616f8
commit 22f37f4aee
1 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis { lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
, openal, curl }: , openal, curl, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dhewm3"; pname = "dhewm3";
@ -21,9 +21,18 @@ stdenv.mkDerivation rec {
cd "$(ls -d dhewm3-*.src)"/neo cd "$(ls -d dhewm3-*.src)"/neo
''; '';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake copyDesktopItems ];
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ]; buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
desktopItems = [
(makeDesktopItem {
name = "dhewm3";
exec = "dhewm3";
desktopName = "Doom 3";
categories = "Game;";
})
];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
meta = with lib; { meta = with lib; {