2015-05-17 02:58:37 +00:00
|
|
|
{ stdenv, fetchgit, cmake, irrlicht, libpng, bzip2, curl, libogg, jsoncpp
|
2015-09-15 09:13:22 +00:00
|
|
|
, libjpeg, libXxf86vm, mesa, openal, libvorbis, xlibsWrapper, sqlite, luajit, freetype
|
2015-05-31 16:36:56 +00:00
|
|
|
, gettext
|
|
|
|
}:
|
2013-01-04 10:39:11 +00:00
|
|
|
|
|
|
|
let
|
2015-10-23 12:43:22 +00:00
|
|
|
version = "0.4.13";
|
2013-01-04 10:39:11 +00:00
|
|
|
sources = {
|
|
|
|
src = fetchgit {
|
2015-05-17 02:58:37 +00:00
|
|
|
url = "https://github.com/minetest/minetest.git";
|
2015-10-23 12:43:22 +00:00
|
|
|
rev = "d44fceac7e1237b00c6431ee1bb5805b602d0dcd";
|
|
|
|
sha256 = "034w9nv23ncdwbs4arzxfph60cfgvalh27hxprjassmz8p7ixnra";
|
2013-01-04 10:39:11 +00:00
|
|
|
};
|
|
|
|
data = fetchgit {
|
2015-05-17 02:58:37 +00:00
|
|
|
url = "https://github.com/minetest/minetest_game.git";
|
2015-10-23 12:43:22 +00:00
|
|
|
rev = "2392842948b114670334eabbb593b66e1427747c";
|
|
|
|
sha256 = "0wb8rdqc2ghi66k8bm8w2db0w7k5rsbdld0dyj1wdr3d6x0bpkcr";
|
2013-01-04 10:39:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "minetest-${version}";
|
2013-06-25 07:17:34 +00:00
|
|
|
|
2013-01-04 10:39:11 +00:00
|
|
|
src = sources.src;
|
2013-06-25 07:17:34 +00:00
|
|
|
|
2013-01-04 10:39:11 +00:00
|
|
|
cmakeFlags = [
|
2015-05-31 16:36:56 +00:00
|
|
|
"-DENABLE_FREETYPE=1"
|
|
|
|
"-DENABLE_GETTEXT=1"
|
|
|
|
"-DCURL_INCLUDE_DIR=${curl}/include/curl"
|
2015-05-17 02:58:37 +00:00
|
|
|
"-DIRRLICHT_INCLUDE_DIR=${irrlicht}/include/irrlicht"
|
2013-01-04 10:39:11 +00:00
|
|
|
];
|
2013-06-25 07:17:34 +00:00
|
|
|
|
2013-01-04 10:39:11 +00:00
|
|
|
buildInputs = [
|
2015-05-31 16:36:56 +00:00
|
|
|
cmake irrlicht libpng bzip2 libjpeg curl libogg jsoncpp libXxf86vm mesa
|
2015-09-15 09:13:22 +00:00
|
|
|
openal libvorbis xlibsWrapper sqlite luajit freetype gettext
|
2013-01-04 10:39:11 +00:00
|
|
|
];
|
2013-06-25 07:17:34 +00:00
|
|
|
|
2013-01-04 10:39:11 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/share/minetest/games/minetest_game/
|
|
|
|
cp -rv ${sources.data}/* $out/share/minetest/games/minetest_game/
|
|
|
|
'';
|
2013-06-25 07:17:34 +00:00
|
|
|
|
2015-05-17 02:58:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://minetest.net/;
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Infinite-world block sandbox game";
|
2015-05-17 02:58:37 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2015-05-17 20:47:36 +00:00
|
|
|
maintainers = with maintainers; [ jgeerds c0dehero ];
|
2013-01-04 10:39:11 +00:00
|
|
|
};
|
|
|
|
}
|