2021-01-15 04:31:39 +00:00
|
|
|
{ fetchurl, lib, stdenv, cmake, xlibsWrapper, libGLU, libGL, SDL, openal, freealut, libogg, libvorbis, runtimeShell }:
|
2014-08-02 14:40:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.3.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "astromenace";
|
2014-08-02 14:40:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2";
|
|
|
|
sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
|
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ xlibsWrapper libGLU libGL SDL openal freealut libogg libvorbis ];
|
2014-08-02 14:40:51 +01: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 10:17:30 +01:00
|
|
|
cat > $out/bin/AstroMenace << EOF
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
2014-08-02 14:40:51 +01:00
|
|
|
$out/AstroMenace --dir=$out
|
|
|
|
EOF
|
|
|
|
chmod 755 $out/bin/AstroMenace
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "Hardcore 3D space shooter with spaceship upgrade possibilities";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.viewizard.com/";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
2014-08-02 14:40:51 +01:00
|
|
|
};
|
|
|
|
}
|