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,
|
{ stdenv, fetchgit, cmake, zlib, boost,
|
||||||
openal, glm, freetype, mesa, glew, SDL2 }:
|
openal, glm, freetype, mesa, glew, SDL2,
|
||||||
|
dejavu_fonts }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "arx-libertatis-${version}";
|
name = "arx-libertatis-${version}";
|
||||||
@ -15,6 +16,18 @@ stdenv.mkDerivation rec {
|
|||||||
cmake zlib boost openal glm
|
cmake zlib boost openal glm
|
||||||
freetype mesa glew SDL2
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user