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
|
{ stdenv, runtimeShell, pkgconfig, gettext, ncurses, CoreFoundation
|
||||||
, tiles, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, freetype, Cocoa
|
, tiles, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, freetype, Cocoa
|
||||||
, debug
|
, debug
|
||||||
|
, useXdgDir
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -50,7 +51,8 @@ stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
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) [
|
] ++ optionals (!debug) [
|
||||||
"RELEASE=1"
|
"RELEASE=1"
|
||||||
] ++ optionals tiles [
|
] ++ optionals tiles [
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
|
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
|
||||||
, tiles ? true, Cocoa
|
, tiles ? true, Cocoa
|
||||||
, debug ? false
|
, debug ? false
|
||||||
|
, useXdgDir ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
common = callPackage ./common.nix {
|
common = callPackage ./common.nix {
|
||||||
inherit CoreFoundation tiles Cocoa debug;
|
inherit CoreFoundation tiles Cocoa debug useXdgDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
self = common.overrideAttrs (common: rec {
|
self = common.overrideAttrs (common: rec {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
|
{ lib, callPackage, CoreFoundation, fetchFromGitHub, pkgs, wrapCDDA
|
||||||
, tiles ? true, Cocoa
|
, tiles ? true, Cocoa
|
||||||
, debug ? false
|
, debug ? false
|
||||||
|
, useXdgDir ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
common = callPackage ./common.nix {
|
common = callPackage ./common.nix {
|
||||||
inherit CoreFoundation tiles Cocoa debug;
|
inherit CoreFoundation tiles Cocoa debug useXdgDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
self = common.overrideAttrs (common: rec {
|
self = common.overrideAttrs (common: rec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user