2019-02-26 12:45:54 +01:00
|
|
|
{ fetchurl, stdenv, cmake, xlibsWrapper, libGLU_combined, SDL, openal, freealut, libogg, libvorbis, runtimeShell }:
|
2014-08-02 15:40:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.3.2";
|
|
|
|
name = "astromenace-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2";
|
|
|
|
sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
|
|
|
|
};
|
|
|
|
|
2018-02-24 14:12:44 +01:00
|
|
|
buildInputs = [ cmake xlibsWrapper libGLU_combined SDL openal freealut libogg libvorbis ];
|
2014-08-02 15:40:51 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cmake ./
|
|
|
|
make
|
|
|
|
./AstroMenace --pack --rawdata=../RAW_VFS_DATA
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp AstroMenace $out
|
|
|
|
cp gamedata.vfs $out
|
2016-10-01 11:17:30 +02:00
|
|
|
cat > $out/bin/AstroMenace << EOF
|
2019-02-26 12:45:54 +01:00
|
|
|
#!${runtimeShell}
|
2014-08-02 15:40:51 +02:00
|
|
|
$out/AstroMenace --dir=$out
|
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/AstroMenace
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Hardcore 3D space shooter with spaceship upgrade possibilities";
|
2018-06-23 13:34:55 +02:00
|
|
|
homepage = https://www.viewizard.com/;
|
2014-08-02 15:40:51 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|