2008-01-30 17:20:48 +00:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-08-09 19:11:57 +01:00
|
|
|
name = "thePenguinMachine";
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2007-08-09 19:11:57 +01:00
|
|
|
url = http://www.migniot.com/matrix/projects/thepenguinmachine/ThePenguinMachine.tar.gz;
|
|
|
|
sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv";
|
|
|
|
};
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
buildInputs = [python24 pil pygame SDL];
|
2007-08-09 19:11:57 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
configurePhase = "
|
2007-08-09 19:11:57 +01:00
|
|
|
sed -e \"/includes = /aincludes.append('${SDL}/include/SDL')\" -i setup.py;
|
|
|
|
sed -e \"/includes = /aincludes.append('${pygame}/include/python2.4')\" -i setup.py;
|
|
|
|
cat setup.py;
|
2008-01-30 17:20:48 +00:00
|
|
|
";
|
2007-08-09 19:11:57 +01:00
|
|
|
buildPhase = "
|
|
|
|
python setup.py build;
|
|
|
|
python setup.py build_clib;
|
|
|
|
python setup.py build_ext;
|
|
|
|
python setup.py build_py;
|
|
|
|
python setup.py build_scripts;
|
|
|
|
";
|
2008-01-30 17:20:48 +00:00
|
|
|
installPhase = "
|
2007-08-09 19:11:57 +01:00
|
|
|
python setup.py install --prefix=\${out}
|
|
|
|
cp -r . /tmp/tpm-build
|
|
|
|
echo 'export PYTHONPATH=$PYTHONPATH:${pygame}/lib/python2.4/site-packages:${pil}/lib/python2.4/site-packages/PIL
|
|
|
|
python ThePenguinMachine.py' >/tmp/tpm-build/tpm.sh;
|
|
|
|
chmod a+rx /tmp/tpm-build/tpm.sh
|
2008-01-30 17:20:48 +00:00
|
|
|
";
|
2007-08-09 19:11:57 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
The Penguin Machine - an Incredible Machine clone.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
}
|