nixpkgs/pkgs/games/astromenace/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, cmake, xorg, libGLU, libGL, SDL, openal, fontconfig, freealut, freetype, libogg, libvorbis, runtimeShell }:
stdenv.mkDerivation rec {
pname = "astromenace";
2021-12-11 14:40:11 +00:00
version = "1.4.1";
src = fetchurl {
url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2";
sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ xorg.libICE xorg.libX11 xorg.libXinerama libGLU libGL SDL openal fontconfig freealut freetype libogg libvorbis ];
2021-12-11 14:40:11 +00:00
postBuild = ''
./AstroMenace --pack --rawdata=../RAW_VFS_DATA
'';
2021-12-11 14:40:11 +00:00
installPhase = ''
mkdir -p $out/bin
2021-12-11 14:40:11 +00:00
cp AstroMenace $out
cp gamedata.vfs $out
2021-12-11 14:40:11 +00:00
cat > $out/bin/AstroMenace << EOF
#!${runtimeShell}
$out/AstroMenace --dir=$out
EOF
2021-12-11 14:40:11 +00:00
chmod 755 $out/bin/AstroMenace
'';
2021-12-11 14:40:11 +00:00
meta = with lib; {
2014-11-11 13:20:43 +00:00
description = "Hardcore 3D space shooter with spaceship upgrade possibilities";
homepage = "https://www.viewizard.com/";
2021-12-11 14:40:11 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "AstroMenace";
};
}