mupen64plus: turn off format hardening

This commit is contained in:
Robin Gloster 2016-02-12 12:50:49 +00:00
parent 136562adab
commit 64e6f69b70

View file

@ -6,9 +6,11 @@ stdenv.mkDerivation {
url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz; url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz;
sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq"; sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq";
}; };
buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ]; buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ];
hardening_format = false;
preConfigure = '' preConfigure = ''
# Some C++ incompatibility fixes # Some C++ incompatibility fixes
sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp
@ -20,10 +22,10 @@ stdenv.mkDerivation {
# Remove PATH environment variable from install script # Remove PATH environment variable from install script
sed -i -e "s|export PATH=|#export PATH=|" ./install.sh sed -i -e "s|export PATH=|#export PATH=|" ./install.sh
''; '';
buildPhase = "make all"; buildPhase = "make all";
installPhase = "PREFIX=$out make install"; installPhase = "PREFIX=$out make install";
meta = { meta = {
description = "A Nintendo 64 Emulator"; description = "A Nintendo 64 Emulator";
license = stdenv.lib.licenses.gpl2Plus; license = stdenv.lib.licenses.gpl2Plus;