quakespasm: add desktop item

This commit is contained in:
Sander van der Burg 2021-08-06 00:04:17 +02:00
parent 246ac3167d
commit 55c21071de

View file

@ -1,4 +1,4 @@
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec {
pname = "quakespasm";
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
sourceRoot = "${pname}-${version}/Quake";
nativeBuildInputs = [ copyDesktopItems ];
buildInputs = [
gzip SDL libvorbis libmad
];
@ -25,6 +26,15 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
desktopItems = [
(makeDesktopItem {
name = "quakespasm";
exec = "quake";
desktopName = "Quakespasm";
categories = "Game;";
})
];
meta = with lib; {
description = "An engine for iD software's Quake";
homepage = "http://quakespasm.sourceforge.net/";