summary refs log blame commit diff
path: root/pkgs/games/alienarena/default.nix
blob: 5c27e3426fd7c05ab270a1cecbcb6b5011a744b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                        
                                       
 
                     
                           
 
                  
                                                                                      
                                                                    
    
 

                                                      
                                                     
 

                                   
                                                             
                                                  
     
 
                           











                                                                           
                                             

                                                
                        

    
{ stdenv, fetchurl, pkgconfig, libjpeg, libX11, libXxf86vm, curl, libogg
, libvorbis, freetype, openal, libGL }:

stdenv.mkDerivation {
  name = "alienarena-7.65";

  src = fetchurl {
    url = "https://icculus.org/alienarena/Files/alienarena-7.65-linux20130207.tar.gz";
    sha256 = "03nnv4m2xmswr0020hssajncdb8sy95jp5yccsm53sgxga4r8igg";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libjpeg libX11 curl libogg libvorbis
                  freetype openal libGL libXxf86vm ];

  patchPhase = ''
    substituteInPlace ./configure \
      --replace libopenal.so.1 ${openal}/lib/libopenal.so.1 \
      --replace libGL.so.1 ${libGL}/lib/libGL.so.1
  '';

  meta = with stdenv.lib; {
    description = "A free, stand-alone first-person shooter computer game";
    longDescription = ''
      Do you like old school deathmatch with modern features? How
      about rich, colorful, arcade-like atmospheres? How about retro
      Sci-Fi? Then you're going to love what Alien Arena has in store
      for you! This game combines some of the very best aspects of
      such games as Quake III and Unreal Tournament and wraps them up
      with a retro alien theme, while adding tons of original ideas to
      make the game quite unique.
    '';
    homepage = http://red.planetarena.org;
    # Engine is under GPLv2, everything else is under
    license = licenses.unfreeRedistributable;
    maintainers = with maintainers; [ astsmtl ];
    platforms = platforms.linux;
    hydraPlatforms = [];
  };
}