2013-04-06 11:09:07 +01:00
|
|
|
{ stdenv, fetchurl, libX11, xproto, gd, SDL, SDL_image, SDL_mixer, zlib
|
|
|
|
, libxml2, pkgconfig, curl, cmake, libzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "openlierox-0.58rc3";
|
|
|
|
|
2009-08-08 19:18:33 +01:00
|
|
|
src = fetchurl {
|
2013-04-06 11:09:07 +01:00
|
|
|
url = "mirror://sourceforge/openlierox/OpenLieroX_0.58_rc3.src.tar.bz2";
|
|
|
|
sha256 = "1k35xppfqi3qfysv81xq3hj4qdy9j2ciinbkfdcmwclcsf3nh94z";
|
2009-08-08 19:18:33 +01:00
|
|
|
};
|
|
|
|
|
2015-10-05 12:23:01 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
|
2013-04-06 11:09:07 +01:00
|
|
|
|
|
|
|
# The breakpad fails to build on x86_64, and it's only to report bugs upstream
|
|
|
|
cmakeFlags = [ "-DBREAKPAD=0" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DSYSTEM_DATA_DIR=$out/share"
|
|
|
|
'';
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i s,curl/types.h,curl/curl.h, include/HTTP.h src/common/HTTP.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/bin $out/share/OpenLieroX
|
2013-04-06 11:09:07 +01:00
|
|
|
cp bin/* $out/bin
|
|
|
|
cp -R ../share/gamedir/* $out/share/OpenLieroX
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libX11 xproto gd SDL SDL_image SDL_mixer zlib libxml2
|
|
|
|
pkgconfig curl cmake libzip ];
|
|
|
|
|
2009-08-08 19:18:33 +01:00
|
|
|
meta = {
|
2013-04-06 11:09:07 +01:00
|
|
|
homepage = http://openlierox.net;
|
2009-08-08 19:18:33 +01:00
|
|
|
description = "Real-time game with Worms-like shooting";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-08-08 19:18:33 +01:00
|
|
|
};
|
|
|
|
}
|