2013-06-26 16:48:45 +02:00
|
|
|
{ stdenv, fetchgit, cmake, irrlicht3843, libpng, bzip2,
|
2013-01-04 11:39:11 +01:00
|
|
|
libjpeg, libXxf86vm, mesa, openal, libvorbis, x11 }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.4.4";
|
|
|
|
sources = {
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/celeron55/minetest.git";
|
|
|
|
rev = "ab06fca4bed26f3dc97d5e5cff437d075d7acff8";
|
|
|
|
};
|
|
|
|
data = fetchgit {
|
|
|
|
url = "https://github.com/celeron55/minetest_game.git";
|
|
|
|
rev = "3928eccf74af0288d12ffb14f8222fae479bc06b";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "minetest-${version}";
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2013-01-04 11:39:11 +01:00
|
|
|
src = sources.src;
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2013-01-04 11:39:11 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DIRRLICHT_INCLUDE_DIR=${irrlicht3843}/include/irrlicht"
|
|
|
|
];
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2013-01-04 11:39:11 +01:00
|
|
|
buildInputs = [
|
2013-06-26 16:48:45 +02:00
|
|
|
cmake irrlicht3843 libpng bzip2 libjpeg
|
2013-01-04 11:39:11 +01:00
|
|
|
libXxf86vm mesa openal libvorbis x11
|
|
|
|
];
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2013-01-04 11:39:11 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/share/minetest/games/minetest_game/
|
|
|
|
cp -rv ${sources.data}/* $out/share/minetest/games/minetest_game/
|
|
|
|
'';
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2013-01-04 11:39:11 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://minetest.net/";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Infinite-world block sandbox game";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2013-01-04 11:39:11 +01:00
|
|
|
};
|
|
|
|
}
|