2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-11-23 21:08:37 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, bzip2
|
|
|
|
, cmake
|
|
|
|
, expat
|
|
|
|
, irrlicht
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libXxf86vm
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libvorbis
|
|
|
|
, openal
|
|
|
|
, pkg-config
|
|
|
|
, sqlite
|
|
|
|
, xlibsWrapper
|
|
|
|
}:
|
2015-05-17 04:36:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "voxelands";
|
2020-11-23 21:08:37 +00:00
|
|
|
version = "1704.00";
|
2015-05-17 04:36:38 +01:00
|
|
|
|
2020-11-23 21:08:37 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0yj9z9nygpn0z63y739v72l3kg81wd71xgix5k045vfzhqsam5m0";
|
2015-05-17 04:36:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DIRRLICHT_INCLUDE_DIR=${irrlicht}/include/irrlicht"
|
|
|
|
"-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG"
|
|
|
|
"-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG"
|
|
|
|
];
|
|
|
|
|
2020-11-23 21:08:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2015-05-17 04:36:38 +01:00
|
|
|
buildInputs = [
|
2020-11-23 21:08:37 +00:00
|
|
|
bzip2
|
|
|
|
expat
|
|
|
|
irrlicht
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libXxf86vm
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libvorbis
|
|
|
|
openal
|
|
|
|
sqlite
|
|
|
|
xlibsWrapper
|
2015-05-17 04:36:38 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-23 21:08:37 +00:00
|
|
|
homepage = "https://voxelands.net/";
|
2015-05-17 04:36:38 +01:00
|
|
|
description = "Infinite-world block sandbox game based on Minetest";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2019-06-07 22:51:50 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-11-23 21:08:37 +00:00
|
|
|
broken = stdenv.isAarch64; # build fails with "libIrrlicht.so: undefined reference to `png_init_filter_functions_neon'"
|
2015-05-17 04:36:38 +01:00
|
|
|
};
|
|
|
|
}
|