2021-02-13 14:23:35 +00:00
|
|
|
{ lib, fetchurl, perlPackages, pkg-config, SDL, SDL_mixer, SDL_Pango, glib
|
|
|
|
, copyDesktopItems, makeDesktopItem
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
perlPackages.buildPerlModule {
|
|
|
|
pname = "frozen-bubble";
|
|
|
|
version = "2.212";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://cpan/authors/id/K/KT/KTHAKORE/Games-FrozenBubble-2.212.tar.gz";
|
|
|
|
sha256 = "721e04ff69c5233060656bfbf4002aa1aeadd96c95351f0c57bb85b6da35a305";
|
|
|
|
};
|
|
|
|
patches = [ ./fix-compilation.patch ];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
nativeBuildInputs = [ copyDesktopItems pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ glib SDL SDL_mixer SDL_Pango perlPackages.SDL perlPackages.FileSlurp ];
|
|
|
|
propagatedBuildInputs = with perlPackages; [ AlienSDL CompressBzip2 FileShareDir FileWhich IPCSystemSimple LocaleMaketextLexicon ];
|
|
|
|
|
|
|
|
perlPreHook = "export LD=$CC";
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "frozen-bubble";
|
|
|
|
exec = "frozen-bubble";
|
|
|
|
desktopName = "Frozen Bubble";
|
|
|
|
genericName = "Frozen Bubble";
|
|
|
|
comment = "Arcade/reflex colour matching game";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Game" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Puzzle with Bubbles";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ puckipedia ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|