mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
296dbc8279
Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, SDL, libpng, zlib, xz, freetype, fontconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openttd-${version}";
|
|
version = "1.3.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://binaries.openttd.org/releases/${version}/${name}-source.tar.xz";
|
|
sha256 = "02r7xfq9a5x1y2wpdhqyczaj48z0qan33hs4i2liahsg1k6w1vzn";
|
|
};
|
|
|
|
buildInputs = [ SDL libpng pkgconfig xz zlib freetype fontconfig ];
|
|
prefixKey = "--prefix-dir=";
|
|
|
|
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 control 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";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = with stdenv.lib.maintainers; [ jcumming the-kenny ];
|
|
};
|
|
}
|