2020-05-05 10:13:29 +01:00
|
|
|
{ lib, stdenv, makeDesktopItem, copyDesktopItems, fetchurl, SDL, SDL_image, SDL_mixer }:
|
2018-02-24 22:23:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnujump";
|
2018-02-24 22:23:27 +00:00
|
|
|
version = "1.0.8";
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnu/gnujump/${pname}-${version}.tar.gz";
|
2018-02-24 22:23:27 +00:00
|
|
|
sha256 = "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk";
|
|
|
|
};
|
2020-05-05 10:13:29 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ copyDesktopItems ];
|
2018-02-24 22:23:27 +00:00
|
|
|
buildInputs = [ SDL SDL_image SDL_mixer ];
|
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_LDFLAGS = "-lm";
|
2019-01-04 19:33:50 +00:00
|
|
|
|
2020-05-05 10:13:29 +01:00
|
|
|
desktopItems = [ (makeDesktopItem {
|
|
|
|
name = "gnujump";
|
|
|
|
exec = "gnujump";
|
|
|
|
icon = "gnujump";
|
|
|
|
desktopName = "GNUjump";
|
|
|
|
comment = "Jump up the tower to survive";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Game" "ArcadeGame" ];
|
2020-05-05 10:13:29 +01:00
|
|
|
}) ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 ${./gnujump.xpm} $out/share/pixmaps/gnujump.xpm
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://jump.gnu.sinusoid.es/index.php?title=Main_Page";
|
2018-02-24 22:23:27 +00:00
|
|
|
description = "A clone of the simple yet addictive game Xjump";
|
|
|
|
longDescription = ''
|
|
|
|
The goal in this game is to jump to the next floor trying not to fall
|
|
|
|
down. As you go upper in the Falling Tower the floors will fall faster.
|
|
|
|
Try to survive longer get upper than anyone. It might seem too simple but
|
|
|
|
once you've tried you'll realize how addictive this is.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|