3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #243 from RSzibele/minetest-0.4.4

add minetest-0.4.4.
This commit is contained in:
Vladimír Čunát 2013-02-10 03:08:40 -08:00
commit 712af3a70f
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, fetchgit, cmake, irrlicht3843, libpng12, bzip2,
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}";
src = sources.src;
cmakeFlags = [
"-DIRRLICHT_INCLUDE_DIR=${irrlicht3843}/include/irrlicht"
];
buildInputs = [
cmake irrlicht3843 libpng12 bzip2 libjpeg
libXxf86vm mesa openal libvorbis x11
];
postInstall = ''
mkdir -pv $out/share/minetest/games/minetest_game/
cp -rv ${sources.data}/* $out/share/minetest/games/minetest_game/
'';
meta = {
homepage = "http://minetest.net/";
description = "Minetest is an infinite-world block sandbox game.";
license = "LGPLv2.1+";
};
}

View file

@ -1105,6 +1105,8 @@ let
minecraft = callPackage ../games/minecraft { };
minetest = callPackage ../games/minetest { };
miniupnpc = callPackage ../tools/networking/miniupnpc { };
miniupnpd = callPackage ../tools/networking/miniupnpd { };