Skip to content
32 changes: 26 additions & 6 deletions pkgs/games/openttd/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
{stdenv, fetchurl, SDL, libpng, zlib}:
{stdenv, fetchurl, pkgconfig, SDL, libpng, zlib, xz, freetype, fontconfig}:

stdenv.mkDerivation rec {
name = "openttd-${version}";
version = "0.6.0";
version = "1.2.2";

src = fetchurl {
url = "mirror://sf/openttd/${name}-source.tar.bz2";
md5 = "dcf63687c73ff56887049fedaf6c6019";
url = "http://binaries.openttd.org/releases/${version}/${name}-source.tar.xz";
sha256 = "158znfx389bhs9gd2hadnbc2a32z4ma1vz8704cmw9yh0fmhbcap";
};

buildInputs = [SDL libpng];
buildInputs = [SDL libpng pkgconfig xz zlib freetype fontconfig];
prefixKey = "--prefix-dir=";
configureFlags = "--with-zlib=${zlib}/lib/libz.a";

configureFlags = ''
--with-zlib=${zlib}/lib/libz.a
--without-liblzo2
'';

makeFlags = "INSTALL_PERSONAL_DIR=";

postInstall = ''
mv $out/games/ $out/bin
'';

meta = {
description = ''OpenTTD is an open source clone of the Microprose game "Transport Tycoon Deluxe".'';
longDescription = ''
OpenTTD is a transportation economics simulator. In single player mode,
players controll a transportation business, and use rail, road, sea, and air
transport to move goods and people around the simulated world.

In multiplayer networked mode, players may:
- play competitively as different businesses
- play cooperatively controling the same business
- observe as spectators
'';
homepage = http://www.openttd.org/;
license = "GPLv2";
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}
31 changes: 31 additions & 0 deletions pkgs/games/rili/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{stdenv, fetchurl, SDL_mixer, SDL, autoconf, automake}:

stdenv.mkDerivation {
name = "ri_li-2.0.1";

src = fetchurl {
url = mirror://sourceforge/ri-li/Ri-li-2.0.1.tar.bz2;
sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd";
};

patches = [ ./moderinze_cpp.patch ];

preConfigure = ''
export CPPFLAGS="-I${SDL}/include -I${SDL}/include/SDL -I${SDL_mixer}/include"
autoreconf -i
'';

buildInputs = [SDL SDL_mixer autoconf automake];

meta = {
homepage = http://ri-li.sourceforge.net;
license = "GPL2+";
description = "A children's train game";
longDescription = ''
Ri-li is an arcade game licensed under the GPL (General Public License).
You drive a toy wood engine in many levels and you must collect all the coaches
to win.
'';
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}
Loading