2022-10-08 08:59:33 +02:00
|
|
|
{ fetchurl, lib, stdenv, cmake, xorg, libGLU, libGL, SDL, openal, fontconfig, freealut, freetype, libogg, libvorbis, runtimeShell }:
|
2014-08-02 15:40:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "astromenace";
|
2021-12-11 15:40:11 +01:00
|
|
|
version = "1.4.1";
|
2014-08-02 15:40:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2";
|
|
|
|
sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
|
|
|
|
};
|
|
|
|
|
2020-12-31 08:48:55 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-10-08 08:59:33 +02:00
|
|
|
buildInputs = [ xorg.libICE xorg.libX11 xorg.libXinerama libGLU libGL SDL openal fontconfig freealut freetype libogg libvorbis ];
|
2014-08-02 15:40:51 +02:00
|
|
|
|
2021-12-11 15:40:11 +01:00
|
|
|
postBuild = ''
|
2014-08-02 15:40:51 +02:00
|
|
|
./AstroMenace --pack --rawdata=../RAW_VFS_DATA
|
|
|
|
'';
|
2021-12-11 15:40:11 +01:00
|
|
|
|
2014-08-02 15:40:51 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2021-12-11 15:40:11 +01:00
|
|
|
|
2014-08-02 15:40:51 +02:00
|
|
|
cp AstroMenace $out
|
|
|
|
cp gamedata.vfs $out
|
2021-12-11 15:40:11 +01:00
|
|
|
|
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
|
2021-12-11 15:40:11 +01:00
|
|
|
|
2014-08-02 15:40:51 +02:00
|
|
|
chmod 755 $out/bin/AstroMenace
|
|
|
|
'';
|
|
|
|
|
2021-12-11 15:40:11 +01:00
|
|
|
meta = with lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Hardcore 3D space shooter with spaceship upgrade possibilities";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.viewizard.com/";
|
2021-12-11 15:40:11 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-05 02:04:21 +02:00
|
|
|
mainProgram = "AstroMenace";
|
2014-08-02 15:40:51 +02:00
|
|
|
};
|
|
|
|
}
|