3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/voxelands/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 {
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
];
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;
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
};
}