1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/games/minetest/default.nix
Bjørn Forsman 083d0890f5 More description fixes
* Remove package name
* Start with upper case letter
* Remove trailing period

Also reword some descriptions and move some long descriptions to
longDescription.

I'm not touching generated packages.
2013-10-06 12:01:38 +02:00

41 lines
1,008 B
Nix

{ stdenv, fetchgit, cmake, irrlicht3843, libpng, 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 libpng 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 = "Infinite-world block sandbox game";
license = "LGPLv2.1+";
};
}