cataclysm-dda{,-git}: support build with USE_XDG_DIR flag

This commit is contained in:
Mitsuhiro Nakamura 2020-04-09 17:16:25 +09:00
parent de56294e57
commit ecf7b57e12
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, runtimeShell, pkgconfig, gettext, ncurses, CoreFoundation
, tiles, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, freetype, Cocoa
, debug
, useXdgDir
}:
let
@ -50,7 +51,8 @@ stdenv.mkDerivation {
'';
makeFlags = [
"PREFIX=$(out)" "USE_HOME_DIR=1" "LANGUAGES=all"
"PREFIX=$(out)" "LANGUAGES=all"
(if useXdgDir then "USE_XDG_DIR=1" else "USE_HOME_DIR=1")
] ++ optionals (!debug) [
"RELEASE=1"
] ++ optionals tiles [

View File

@ -1,11 +1,12 @@
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
, tiles ? true, Cocoa
, debug ? false
, useXdgDir ? false
}:
let
common = callPackage ./common.nix {
inherit CoreFoundation tiles Cocoa debug;
inherit CoreFoundation tiles Cocoa debug useXdgDir;
};
self = common.overrideAttrs (common: rec {

View File

@ -1,11 +1,12 @@
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
, tiles ? true, Cocoa
, debug ? false
, useXdgDir ? false
}:
let
common = callPackage ./common.nix {
inherit CoreFoundation tiles Cocoa debug;
inherit CoreFoundation tiles Cocoa debug useXdgDir;
};
self = common.overrideAttrs (common: rec {