From 20af4b828727110ddbf205beccc0baaf314f81c9 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Fri, 5 Feb 2016 02:07:01 +0300 Subject: [PATCH] arx-libertatis: use our DevaVu fonts, set proper data directory, enable parallel building --- pkgs/games/arx-libertatis/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/games/arx-libertatis/default.nix b/pkgs/games/arx-libertatis/default.nix index 47c58cc13b30..4cf33d2984f4 100644 --- a/pkgs/games/arx-libertatis/default.nix +++ b/pkgs/games/arx-libertatis/default.nix @@ -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 = ''