frozen-bubble: add desktop file

This commit is contained in:
Bryan Gardiner 2021-02-10 20:28:03 -08:00
parent 30cbff7820
commit 976ac59e41
No known key found for this signature in database
GPG key ID: 53EFBCA063E6183C

View file

@ -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;