mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
Adding the pacman-like game njam.
svn path=/nixpkgs/trunk/; revision=26553
This commit is contained in:
parent
a602209a6b
commit
723fce8d57
24
pkgs/games/njam/default.nix
Normal file
24
pkgs/games/njam/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "njam-1.25";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = mirror://sourceforge/njam/njam-1.25-src.tar.gz;
|
||||||
|
sha256 = "0ysvqw017xkvddj957pdfmbmji7qi20nyr7f0zxvcvm6c7d3cc7s";
|
||||||
|
};
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
rm src/*.o
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_net ];
|
||||||
|
|
||||||
|
patches = [ ./logfile.patch ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://trackballs.sourceforge.net/;
|
||||||
|
description = "Cross-platform pacman-like game";
|
||||||
|
license = "GPLv2+";
|
||||||
|
};
|
||||||
|
}
|
22
pkgs/games/njam/logfile.patch
Normal file
22
pkgs/games/njam/logfile.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/src/njamedit.cpp b/src/njamedit.cpp
|
||||||
|
index a895ca9..38477db 100644
|
||||||
|
--- a/src/njamedit.cpp
|
||||||
|
+++ b/src/njamedit.cpp
|
||||||
|
@@ -114,7 +114,7 @@ void NjamEngine::LevelEditor()
|
||||||
|
key = SDLK_a;
|
||||||
|
else if (CheckForSave())
|
||||||
|
{
|
||||||
|
- LogFile::LogFile("Saving maps");
|
||||||
|
+ LogFile("Saving maps");
|
||||||
|
m_Maps.Save(filename);
|
||||||
|
level_type_was = level_type;
|
||||||
|
changed = false;
|
||||||
|
@@ -139,7 +139,7 @@ void NjamEngine::LevelEditor()
|
||||||
|
"levels/%s.%s",
|
||||||
|
#endif
|
||||||
|
filename, types[level_type]);
|
||||||
|
- LogFile::LogFile("Saving maps");
|
||||||
|
+ LogFile("Saving maps");
|
||||||
|
m_Maps.Save(buf);
|
||||||
|
level_type_was = level_type;
|
||||||
|
changed = false;
|
@ -7096,6 +7096,8 @@ let
|
|||||||
|
|
||||||
micropolis = callPackage ../games/micropolis { };
|
micropolis = callPackage ../games/micropolis { };
|
||||||
|
|
||||||
|
njam = callPackage ../games/njam { };
|
||||||
|
|
||||||
openttd = callPackage ../games/openttd {
|
openttd = callPackage ../games/openttd {
|
||||||
zlib = zlibStatic;
|
zlib = zlibStatic;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user