Teeworlds 0.5.0.
svn path=/nixpkgs/trunk/; revision=13764
This commit is contained in:
parent
dc28c92e63
commit
474ff7c05c
@ -1,16 +1,16 @@
|
|||||||
{ fetchurl, stdenv, unzip, python, alsaLib, libX11, mesa }:
|
{ fetchurl, stdenv, python, alsaLib, libX11, mesa, SDL }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "teeworlds-0.4.3";
|
name = "teeworlds-0.5.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.teeworlds.com/files/${name}-src.tar.gz";
|
url = "http://www.teeworlds.com/files/${name}-src.tar.gz";
|
||||||
sha256 = "1k141517wchhw2586m0kkvh65kadnlybpvzrxlb8b098jbg1hr1n";
|
sha256 = "1akns8852j208cy3q4ki0fgbbpp0wyjm5fhnma7qs5k60321305x";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Note: Teeworlds requires Python 2.x to compile. Python 3.0 will
|
# Note: Teeworlds requires Python 2.x to compile. Python 3.0 will
|
||||||
# not work.
|
# not work.
|
||||||
buildInputs = [ unzip python alsaLib libX11 mesa ];
|
buildInputs = [ python alsaLib libX11 mesa SDL ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace "default.bam" \
|
substituteInPlace "default.bam" \
|
||||||
@ -19,15 +19,16 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
# Fetch and build BAM, the home-made build system.
|
# Fetch and build BAM, the home-made build system.
|
||||||
unzip ${fetchurl {
|
# FIXME: Move BAM outside of here. See http://www.teeworlds.com/trac/bam .
|
||||||
url = "http://teeworlds.com/files/bam.zip";
|
tar xzvf ${fetchurl {
|
||||||
sha256 = "0dz9k906skgzc4l15ihlqb1d1hk0s2yajadbq5zs01gxi05xhy6v";
|
url = "http://teeworlds.com/trac/bam/browser/releases/bam-0.2.0.tar.gz?format=raw";
|
||||||
|
sha256 = "0n077iiidw7xsyna4y92pz5dwqaywps3w0v5c88dic27vz0xsv7g";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
( cd bam && ./make_unix.sh )
|
( cd bam-* && ./make_unix.sh )
|
||||||
|
|
||||||
# Build Teeworlds.
|
# Build Teeworlds.
|
||||||
./bam/src/bam release
|
./bam-*/src/bam release
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -8522,7 +8522,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
teeworlds = import ../games/teeworlds {
|
teeworlds = import ../games/teeworlds {
|
||||||
inherit fetchurl stdenv unzip python alsaLib mesa;
|
inherit fetchurl stdenv python alsaLib mesa SDL;
|
||||||
inherit (xlibs) libX11;
|
inherit (xlibs) libX11;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user