mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
arx-libertatis: use our DevaVu fonts, set proper data directory, enable parallel building
This commit is contained in:
parent
8c440be8cf
commit
20af4b8287
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user