2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchurl, libX11, xorgproto, gd, SDL, SDL_image, SDL_mixer, zlib
|
2020-12-31 07:48:55 +00:00
|
|
|
, libxml2, pkg-config, curl, cmake, libzip }:
|
2013-04-06 10:09:07 +00:00
|
|
|
|
2021-06-22 21:44:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openlierox";
|
|
|
|
version = "0.58rc3";
|
2013-04-06 10:09:07 +00:00
|
|
|
|
2009-08-08 18:18:33 +00:00
|
|
|
src = fetchurl {
|
2013-04-06 10:09:07 +00:00
|
|
|
url = "mirror://sourceforge/openlierox/OpenLieroX_0.58_rc3.src.tar.bz2";
|
|
|
|
sha256 = "1k35xppfqi3qfysv81xq3hj4qdy9j2ciinbkfdcmwclcsf3nh94z";
|
2009-08-08 18:18:33 +00:00
|
|
|
};
|
|
|
|
|
2017-09-04 16:40:03 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -std=c++98 -Wno-error";
|
2013-04-06 10:09:07 +00: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 12:56:10 +00:00
|
|
|
mkdir -p $out/bin $out/share/OpenLieroX
|
2013-04-06 10:09:07 +00:00
|
|
|
cp bin/* $out/bin
|
|
|
|
cp -R ../share/gamedir/* $out/share/OpenLieroX
|
|
|
|
'';
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config curl ];
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ libX11 xorgproto gd SDL SDL_image SDL_mixer zlib libxml2
|
2020-12-31 07:48:55 +00:00
|
|
|
libzip ];
|
2013-04-06 10:09:07 +00:00
|
|
|
|
2009-08-08 18:18:33 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://openlierox.net";
|
2009-08-08 18:18:33 +00:00
|
|
|
description = "Real-time game with Worms-like shooting";
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2009-08-08 18:18:33 +00:00
|
|
|
};
|
|
|
|
}
|