mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +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}";
|
||||
@ -15,6 +16,18 @@ stdenv.mkDerivation rec {
|
||||
cmake zlib boost openal glm
|
||||
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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user