18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = finalAttrs.version;
26 hash = "sha256-4ofjroEHlfrQitc7M+YTNWut0LGgntgQoOeBWU8nscY=";
30 sed 1i'#include <cstdint>' -i src/common/s*x.cpp
31 sed 1i'#include <libxml/parser.h>' -i include/XMLutils.h
32 substituteInPlace src/common/StringUtils.cpp \
33 --replace-fail "xmlErrorPtr" "const xmlError*"
56 cmakeFlags = [ "-DSYSTEM_DATA_DIR=${placeholder "out"}/share" ];
58 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev libxml2}/include/libxml2";
63 install -Dm755 bin/* -t $out/bin
65 mkdir -p $out/share/OpenLieroX
66 cp -r ../share/gamedir/* $out/share/OpenLieroX
72 description = "Real-time game with Worms-like shooting";
73 homepage = "http://openlierox.net";
74 license = lib.licenses.lgpl2Plus;
75 mainProgram = "openlierox";
76 maintainers = with lib.maintainers; [ tomasajt ];
77 platforms = lib.platforms.linux;