From 976ac59e41195655e7602a2802ba44a735a9ebc0 Mon Sep 17 00:00:00 2001 From: Bryan Gardiner Date: Wed, 10 Feb 2021 20:28:03 -0800 Subject: [PATCH] frozen-bubble: add desktop file --- pkgs/games/frozen-bubble/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/games/frozen-bubble/default.nix b/pkgs/games/frozen-bubble/default.nix index 6883acb6014c..f9dd3fd61592 100644 --- a/pkgs/games/frozen-bubble/default.nix +++ b/pkgs/games/frozen-bubble/default.nix @@ -1,5 +1,6 @@ -{ lib, fetchurl, perlPackages, pkg-config, SDL, SDL_mixer, SDL_Pango, glib }: - +{ lib, fetchurl, perlPackages, pkg-config, SDL, SDL_mixer, SDL_Pango, glib +, copyDesktopItems, makeDesktopItem +}: perlPackages.buildPerlModule { pname = "frozen-bubble"; version = "2.212"; @@ -10,13 +11,24 @@ perlPackages.buildPerlModule { }; patches = [ ./fix-compilation.patch ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ copyDesktopItems pkg-config ]; buildInputs = [ glib SDL SDL_mixer SDL_Pango perlPackages.SDL perlPackages.FileSlurp ]; propagatedBuildInputs = with perlPackages; [ AlienSDL CompressBzip2 FileShareDir FileWhich IPCSystemSimple LocaleMaketextLexicon ]; perlPreHook = "export LD=$CC"; + desktopItems = [ + (makeDesktopItem { + name = "frozen-bubble"; + exec = "frozen-bubble"; + desktopName = "Frozen Bubble"; + genericName = "Frozen Bubble"; + comment = "Arcade/reflex colour matching game"; + categories = "Game;"; + }) + ]; + meta = { description = "Puzzle with Bubbles"; license = lib.licenses.gpl2;