mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
dfhack: move env variables into env for structuredAttrs
This commit is contained in:
@@ -145,8 +145,19 @@ stdenv.mkDerivation {
|
||||
# Use SDL_GetPrefPath since this takes XDG_DATA_HOME into account (which is correct).
|
||||
++ optional (versionAtLeast version "52.02-r2") ./use-df-linux-dir.patch;
|
||||
|
||||
# gcc 11 fix
|
||||
CXXFLAGS = optionalString (versionOlder version "0.47.05-r3") "-fpermissive";
|
||||
env = {
|
||||
# gcc 11 fix
|
||||
CXXFLAGS = optionalString (versionOlder version "0.47.05-r3") "-fpermissive";
|
||||
|
||||
NIX_CFLAGS_COMPILE = toString (
|
||||
[
|
||||
"-Wno-error=deprecated-enum-enum-conversion"
|
||||
]
|
||||
++ optionals (versionOlder version "0.47") [
|
||||
"-fpermissive"
|
||||
]
|
||||
);
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
@@ -200,11 +211,6 @@ stdenv.mkDerivation {
|
||||
"-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=${fetchOverrides}"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-Wno-error=deprecated-enum-enum-conversion"
|
||||
]
|
||||
++ optionals (versionOlder version "0.47") [ "-fpermissive" ];
|
||||
|
||||
preFixup = ''
|
||||
# Wrap dfhack scripts.
|
||||
if [ -f $out/dfhack ]; then
|
||||
|
||||
Reference in New Issue
Block a user