From 5901dae6739f0189032a97a71c75055cc8e2309e Mon Sep 17 00:00:00 2001 From: Ricardo Ardissone Date: Fri, 13 Jul 2018 17:27:42 -0300 Subject: [PATCH] cataclysm-dda-git: debug flag --- pkgs/games/cataclysm-dda/git.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/games/cataclysm-dda/git.nix b/pkgs/games/cataclysm-dda/git.nix index 785cf91c8f2a..d1d1b4c54d4e 100644 --- a/pkgs/games/cataclysm-dda/git.nix +++ b/pkgs/games/cataclysm-dda/git.nix @@ -1,6 +1,6 @@ { fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, freetype, gettext, CoreFoundation, Cocoa, -tiles ? true }: +tiles ? true, debug ? false }: stdenv.mkDerivation rec { version = "2018-07-15"; @@ -31,7 +31,6 @@ stdenv.mkDerivation rec { makeFlags = with stdenv.lib; [ "PREFIX=$(out)" "LUA=1" - "RELEASE=1" "USE_HOME_DIR=1" "LANGUAGES=all" "VERSION=git-${version}-${substring 0 8 src.rev}" @@ -41,6 +40,8 @@ stdenv.mkDerivation rec { ] ++ optionals stdenv.isDarwin [ "NATIVE=osx" "CLANG=1" + ] ++ optionals (! debug) [ + "RELEASE=1" ]; 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 enableParallelBuilding = false; + dontStrip = debug; + meta = with stdenv.lib; { description = "A free, post apocalyptic, zombie infested rogue-like"; longDescription = ''