Merge pull request #195903 from wegank/zod-wxgtk

zod: fix build on aarch64-linux
This commit is contained in:
Mario Rodas 2022-10-14 18:38:43 -05:00 committed by GitHub
commit dfb28590f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
, SDL_ttf
, SDL_mixer
, libmysqlclient
, wxGTK
, wxGTK32
, symlinkJoin
, runCommandLocal
, makeWrapper
@ -31,7 +31,7 @@ let
SDL_ttf
SDL_mixer
libmysqlclient
wxGTK
wxGTK32
coreutils
];
hardeningDisable = [ "format" ];
@ -74,7 +74,8 @@ let
];
postPatch = ''
substituteInPlace zod_launcher_src/zod_launcherFrm.cpp \
--replace 'message = wxT("./zod");' 'message = wxT("zod");'
--replace 'message = wxT("./zod");' 'message = wxT("zod");' \
--replace "check.replace(i,1,1,'_');" "check.replace(i,1,1,(wxUniChar)'_');"
'';
preBuild = "cd zod_launcher_src";
installPhase = ''
@ -106,5 +107,6 @@ in
homepage = "http://zod.sourceforge.net/";
maintainers = with maintainers; [ zeri ];
license = licenses.gpl3Plus; /* Says the website */
platforms = platforms.linux;
};
}