nixpkgs/pkgs/games/voxelands/default.nix

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

75 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-11-23 21:08:37 +00:00
, fetchFromGitLab
, bzip2
, cmake
, expat
, freetype
2020-11-23 21:08:37 +00:00
, irrlicht
, libICE
2020-11-23 21:08:37 +00:00
, libGL
, libGLU
, libSM
, libX11
, libXext
2020-11-23 21:08:37 +00:00
, libXxf86vm
, libjpeg
, libpng
, libvorbis
, openal
, pkg-config
, sqlite
}:
2015-05-17 03:36:38 +00:00
stdenv.mkDerivation rec {
pname = "voxelands";
2020-11-23 21:08:37 +00:00
version = "1704.00";
2015-05-17 03:36:38 +00:00
2020-11-23 21:08:37 +00:00
src = fetchFromGitLab {
owner = pname;
repo = pname;
rev = version;
sha256 = "0yj9z9nygpn0z63y739v72l3kg81wd71xgix5k045vfzhqsam5m0";
2015-05-17 03:36:38 +00: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 03:36:38 +00:00
buildInputs = [
# has to go before others to override transitive libpng-1.6
libpng
2020-11-23 21:08:37 +00:00
bzip2
expat
freetype
2020-11-23 21:08:37 +00:00
irrlicht
libICE
2020-11-23 21:08:37 +00:00
libGL
libGLU
libSM
libX11
libXext
2020-11-23 21:08:37 +00:00
libXxf86vm
libjpeg
libvorbis
openal
sqlite
2015-05-17 03:36:38 +00:00
];
meta = with lib; {
2020-11-23 21:08:37 +00:00
homepage = "https://voxelands.net/";
2015-05-17 03:36:38 +00: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 03:36:38 +00:00
};
}