diff options
author | legendofmiracles <legendofmiracles@protonmail.com> | 2021-12-11 08:40:11 -0600 |
---|---|---|
committer | legendofmiracles <legendofmiracles@protonmail.com> | 2021-12-12 09:23:12 -0600 |
commit | 7810e5eb0ce067706234cc280f4576232a109e6f (patch) | |
tree | b1330d635ade16989e05cb0fadf21dafa6b7d405 /pkgs/games/astromenace | |
parent | 77dc4eecc2c8c9b99f9715224f3ff139cfe5dea4 (diff) |
astromenace: 1.3.2 -> 1.4.1
Diffstat (limited to 'pkgs/games/astromenace')
-rw-r--r-- | pkgs/games/astromenace/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/games/astromenace/default.nix b/pkgs/games/astromenace/default.nix index 16b087d1e4d0f..556b276e210ed 100644 --- a/pkgs/games/astromenace/default.nix +++ b/pkgs/games/astromenace/default.nix @@ -1,8 +1,8 @@ { fetchurl, lib, stdenv, cmake, xlibsWrapper, libGLU, libGL, SDL, openal, freealut, libogg, libvorbis, runtimeShell }: stdenv.mkDerivation rec { - version = "1.3.2"; pname = "astromenace"; + version = "1.4.1"; src = fetchurl { url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2"; @@ -12,27 +12,29 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = [ xlibsWrapper libGLU libGL SDL openal freealut libogg libvorbis ]; - buildPhase = '' - cmake ./ - make + postBuild = '' ./AstroMenace --pack --rawdata=../RAW_VFS_DATA ''; + installPhase = '' mkdir -p $out/bin + cp AstroMenace $out cp gamedata.vfs $out + cat > $out/bin/AstroMenace << EOF #!${runtimeShell} $out/AstroMenace --dir=$out EOF + chmod 755 $out/bin/AstroMenace ''; - meta = { + meta = with lib; { description = "Hardcore 3D space shooter with spaceship upgrade possibilities"; homepage = "https://www.viewizard.com/"; - license = lib.licenses.gpl3; - platforms = lib.platforms.linux; + license = licenses.gpl3Plus; + platforms = platforms.linux; mainProgram = "AstroMenace"; }; } |