diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-08-06 20:39:01 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-08-06 20:39:01 +0000 |
commit | 9e55727832c2f1b775a546e13549f98926c4fb90 (patch) | |
tree | d8481e7c72b3d06ea3c016a16ff20c1b811160e6 /pkgs/games/micropolis | |
parent | 692c5a62a45223ea49dd3041decf3b1141124c88 (diff) |
Added:
* dmenu * gftp * micropolis * byacc as a build-time dependency for micropolis contributed by baldo <baldo@quimby.lan> svn path=/nixpkgs/trunk/; revision=12526
Diffstat (limited to 'pkgs/games/micropolis')
-rw-r--r-- | pkgs/games/micropolis/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/games/micropolis/default.nix b/pkgs/games/micropolis/default.nix new file mode 100644 index 0000000000000..4adbe69f697f0 --- /dev/null +++ b/pkgs/games/micropolis/default.nix @@ -0,0 +1,48 @@ +args: with args; +stdenv.mkDerivation { + name = "micropolis"; + + src = fetchurl { + url = http://www.donhopkins.com/home/micropolis/micropolis-activity-source.tgz; + sha256 = "1b3c72dc3680a34b5fc5a740a6fb5cfc0b8775514da8ab7bb3b2965b20d4f8bc"; + }; + + patches = [ + (fetchurl { + url = http://rmdir.de/~michael/micropolis_git.patch; + sha256 = "13419a4394242cd11d5cabd8b1b50787282ea16b55fdcfbeadf8505af46b0592"; + }) + ]; + + buildInputs = [ libX11 libXpm libXext xextproto byacc ]; + + preConfigure = [ + ''cd src + sed -i "s@^CFLAGS.*\$@&\nCFLAGS += -I${libXpm}/include/X11@" tk/makefile + sed -i "s@^INCLUDES.*\$@&\n\t-I$PWD/tcl \\\\@" sim/makefile + '' + ]; + + postInstall = [ + ''mkdir -p $out/bin + mkdir -p $out/usr/share/games/micropolis + cd .. + for d in activity cities images manual res; do + cp -R $d $out/usr/share/games/micropolis + done + cp Micropolis $out/usr/share/games/micropolis + cat > $out/bin/micropolis << EOF +#!/bin/bash +cd $out/usr/share/games/micropolis +./Micropolis +EOF + chmod 755 $out/bin/micropolis + '' + ]; + + meta = { + description = "GPL'ed version of S*m C*ty"; + homepage = http://www.donhopkins.com/home/micropolis/; + license = "GPL"; + }; +} |