diff options
author | System administrator <robberer@freakmail.de> | 2014-08-02 15:40:51 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2014-08-07 01:54:41 +0200 |
commit | f3739e2aca6068901bbfcd1b6ed21788b16988f2 (patch) | |
tree | 98ad4d5db30a7a5fad5a55205be519172cb6bb65 /pkgs/games/astromenace/default.nix | |
parent | 61121203c228fa1c421df7622e3a4d0f8b04460b (diff) |
added astromenace: Hardcore 3D space shooter
Diffstat (limited to 'pkgs/games/astromenace/default.nix')
-rw-r--r-- | pkgs/games/astromenace/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/games/astromenace/default.nix b/pkgs/games/astromenace/default.nix new file mode 100644 index 0000000000000..a2897a795e84e --- /dev/null +++ b/pkgs/games/astromenace/default.nix @@ -0,0 +1,36 @@ +{ fetchurl, stdenv, cmake, x11, mesa, SDL, openal, freealut, libogg, libvorbis }: + +stdenv.mkDerivation rec { + version = "1.3.2"; + name = "astromenace-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2"; + sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv"; + }; + + buildInputs = [ cmake x11 mesa SDL openal freealut libogg libvorbis ]; + + buildPhase = '' + cmake ./ + make + ./AstroMenace --pack --rawdata=../RAW_VFS_DATA + ''; + installPhase = '' + mkdir -p $out/bin + cp AstroMenace $out + cp gamedata.vfs $out + cat > $out/bin/AstroMenace << EOF + #!/bin/bash + $out/AstroMenace --dir=$out + EOF + chmod 755 $out/bin/AstroMenace + ''; + + meta = { + description = "Hardcore 3D space shooter with spaceship upgrade possibilities."; + homepage = http://www.viewizard.com/; + license = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.linux; + }; +} |