cataclysm-dda{,-git}: support build with USE_XDG_DIR flag
This commit is contained in:
parent
de56294e57
commit
ecf7b57e12
@ -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 [
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user