teeworlds: cmake instead of bam, oh joy! cleanup
This commit is contained in:
parent
7b26075b13
commit
5da89034f9
@ -1,4 +1,4 @@
|
|||||||
{ fetchFromGitHub, stdenv, bam, pkgconfig, python, alsaLib
|
{ fetchFromGitHub, stdenv, cmake, pkgconfig, python, alsaLib
|
||||||
, libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack
|
, libX11, libGLU, SDL2, lua5_3, zlib, freetype, wavpack
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -21,35 +21,12 @@ stdenv.mkDerivation rec {
|
|||||||
'#define DATA_DIR "${placeholder "out"}/share/teeworlds/data"'
|
'#define DATA_DIR "${placeholder "out"}/share/teeworlds/data"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ bam pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
runHook preConfigure
|
|
||||||
bam config
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
bam conf=release
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin $out/share/teeworlds
|
|
||||||
cp build/x86_64/release/teeworlds{,_srv} $out/bin
|
|
||||||
cp -r build/x86_64/release/data $out/share/teeworlds
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python alsaLib libX11 libGLU SDL2 lua5_3 zlib freetype wavpack
|
python alsaLib libX11 libGLU SDL2 lua5_3 zlib freetype wavpack
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/share/doc/teeworlds
|
|
||||||
cp -v *.txt $out/share/doc/teeworlds/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Retro multiplayer shooter game";
|
description = "Retro multiplayer shooter game";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user