1 { lib, stdenv, fetchurl, libX11, xorgproto, gd, SDL, SDL_image, SDL_mixer, zlib
2 , libxml2, pkg-config, curl, cmake, libzip }:
4 stdenv.mkDerivation rec {
9 url = "mirror://sourceforge/openlierox/OpenLieroX_0.58_rc3.src.tar.bz2";
10 sha256 = "1k35xppfqi3qfysv81xq3hj4qdy9j2ciinbkfdcmwclcsf3nh94z";
13 NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -std=c++98 -Wno-error";
15 # The breakpad fails to build on x86_64, and it's only to report bugs upstream
16 cmakeFlags = [ "-DBREAKPAD=0" ];
19 cmakeFlags="$cmakeFlags -DSYSTEM_DATA_DIR=$out/share"
23 sed -i s,curl/types.h,curl/curl.h, include/HTTP.h src/common/HTTP.cpp
27 mkdir -p $out/bin $out/share/OpenLieroX
29 cp -R ../share/gamedir/* $out/share/OpenLieroX
32 nativeBuildInputs = [ cmake pkg-config curl ];
33 buildInputs = [ libX11 xorgproto gd SDL SDL_image SDL_mixer zlib libxml2
37 homepage = "http://openlierox.net";
38 description = "Real-time game with Worms-like shooting";
39 license = lib.licenses.lgpl2Plus;
40 platforms = lib.platforms.linux;