cataclysm-dda{,-git}: apply locale patch dynamically

Each time src/translations.cpp is modified, we have to update the locale
patch. Using sed to patch dynamically should be handy.
This commit is contained in:
Mitsuhiro Nakamura
2020-07-18 14:21:12 +09:00
parent d6863de058
commit bf71f12cb5
5 changed files with 5 additions and 45 deletions
+5
View File
@@ -21,6 +21,11 @@ let
postPatch = ''
patchShebangs .
# Locale patch required for Darwin builds, see:
# https://github.com/NixOS/nixpkgs/pull/74064#issuecomment-560083970
sed -i src/translations.cpp \
-e 's@#elif (defined(__linux__) || (defined(MACOSX) && !defined(TILES)))@#elif 1@'
'';
makeFlags = [