Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
arx-libertatis: 2018-08-26 -> 2019-02-16
Browse files Browse the repository at this point in the history
  • Loading branch information
rnhmjoj committed Mar 5, 2019
1 parent 3eda950 commit d10f3e9
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions pkgs/games/arx-libertatis/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
{ stdenv, fetchFromGitHub, cmake, zlib, boost,
openal, glm, freetype, libGLU_combined, glew, SDL2,
dejavu_fonts, inkscape, optipng, imagemagick }:
{ stdenv, fetchFromGitHub, cmake, zlib, boost
, openal, glm, freetype, libGLU, SDL2, epoxy
, dejavu_fonts, inkscape, optipng, imagemagick
, withCrashReporter ? !stdenv.isDarwin
, qt5 ? null
, curl ? null
, gdb ? null
}:

with stdenv.lib;

stdenv.mkDerivation rec {
name = "arx-libertatis-${version}";
version = "2018-08-26";
version = "2019-02-16";

src = fetchFromGitHub {
owner = "arx";
repo = "ArxLibertatis";
rev = "7b551739cc22fa25dae83bcc1a2b784ddecc729c";
sha256 = "1ybv3p74rywn0ajdbw7pyk7pd7py1db9h6x2pav2d28ndkkj4z8n";
rev = "fbce6ccbc7f58583f33f29b838c38ef527edc267";
sha256 = "0qrygp09dqhpb5q6a1zl6l03qh9bi7xcahd8hy9177z1cix3k0kz";
};

buildInputs = [
cmake zlib boost openal glm
freetype libGLU_combined glew SDL2 inkscape
optipng imagemagick

nativeBuildInputs = [
cmake inkscape imagemagick optipng
];

buildInputs = [
zlib boost openal glm
freetype libGLU SDL2 epoxy
] ++ optionals withCrashReporter [ qt5.qtbase curl ]
++ optionals stdenv.isLinux [ gdb ];

cmakeFlags = [
"-DDATA_DIR_PREFIXES=$out/share"
"-DImageMagick_convert_EXECUTABLE=${imagemagick.out}/bin/convert"
Expand All @@ -33,7 +45,7 @@ stdenv.mkDerivation rec {
$out/share/games/arx/misc/dejavusansmono.ttf
'';

meta = with stdenv.lib; {
meta = {
description = ''
A cross-platform, open source port of Arx Fatalis, a 2002
first-person role-playing game / dungeon crawler
Expand Down

0 comments on commit d10f3e9

Please sign in to comment.