arx-libertatis: use our DevaVu fonts, set proper data directory, enable parallel building

This commit is contained in:
Nikolay Amiantov 2016-02-05 02:07:01 +03:00
parent 8c440be8cf
commit 20af4b8287

View File

@ -1,5 +1,6 @@
{ stdenv, fetchgit, cmake, zlib, boost,
openal, glm, freetype, mesa, glew, SDL2 }:
openal, glm, freetype, mesa, glew, SDL2,
dejavu_fonts }:
stdenv.mkDerivation rec {
name = "arx-libertatis-${version}";
@ -16,6 +17,18 @@ stdenv.mkDerivation rec {
freetype mesa glew SDL2
];
preConfigure = ''
cmakeFlags="-DDATA_DIR_PREFIXES=$out/share"
'';
enableParallelBuilding = true;
postInstall = ''
ln -sf \
${dejavu_fonts}/share/fonts/truetype/DejaVuSansMono.ttf \
$out/share/games/arx/misc/dejavusansmono.ttf
'';
meta = with stdenv.lib; {
description = ''
A cross-platform, open source port of Arx Fatalis, a 2002