Skip to content

Commit

Permalink
quakespasm: add desktop item
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed Aug 6, 2021
1 parent 246ac31 commit 55c2107
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/games/quakespasm/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -12,6 +12,7 @@ stdenv.mkDerivation rec {

sourceRoot = "${pname}-${version}/Quake";

nativeBuildInputs = [ copyDesktopItems ];
buildInputs = [
gzip SDL libvorbis libmad
];
Expand All @@ -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/";
Expand Down

0 comments on commit 55c2107

Please sign in to comment.