cataclysm-dda-git: debug flag
This commit is contained in:
parent
05c2aa212e
commit
5901dae673
@ -1,6 +1,6 @@
|
|||||||
{ fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf,
|
{ fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf,
|
||||||
SDL2_mixer, freetype, gettext, CoreFoundation, Cocoa,
|
SDL2_mixer, freetype, gettext, CoreFoundation, Cocoa,
|
||||||
tiles ? true }:
|
tiles ? true, debug ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2018-07-15";
|
version = "2018-07-15";
|
||||||
@ -31,7 +31,6 @@ stdenv.mkDerivation rec {
|
|||||||
makeFlags = with stdenv.lib; [
|
makeFlags = with stdenv.lib; [
|
||||||
"PREFIX=$(out)"
|
"PREFIX=$(out)"
|
||||||
"LUA=1"
|
"LUA=1"
|
||||||
"RELEASE=1"
|
|
||||||
"USE_HOME_DIR=1"
|
"USE_HOME_DIR=1"
|
||||||
"LANGUAGES=all"
|
"LANGUAGES=all"
|
||||||
"VERSION=git-${version}-${substring 0 8 src.rev}"
|
"VERSION=git-${version}-${substring 0 8 src.rev}"
|
||||||
@ -41,6 +40,8 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
"NATIVE=osx"
|
"NATIVE=osx"
|
||||||
"CLANG=1"
|
"CLANG=1"
|
||||||
|
] ++ optionals (! debug) [
|
||||||
|
"RELEASE=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = with stdenv.lib; optionalString (tiles && !stdenv.isDarwin) ''
|
postInstall = with stdenv.lib; optionalString (tiles && !stdenv.isDarwin) ''
|
||||||
@ -64,6 +65,8 @@ stdenv.mkDerivation rec {
|
|||||||
# make: *** [Makefile:687: obj/tiles/weather_data.o] Error 1
|
# make: *** [Makefile:687: obj/tiles/weather_data.o] Error 1
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
|
dontStrip = debug;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A free, post apocalyptic, zombie infested rogue-like";
|
description = "A free, post apocalyptic, zombie infested rogue-like";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user