zod: Fix build

This commit is contained in:
Tuomas Tynkkynen 2017-10-12 22:07:41 +03:00
parent 94fa59228a
commit a25ded05d8

View File

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
sha256 = "0gmg4ppr4y6ck04mandlp2fmdcyssmck999m012jx5v1rm57g2hn"; sha256 = "0gmg4ppr4y6ck04mandlp2fmdcyssmck999m012jx5v1rm57g2hn";
}; };
hardeningDisable = [ "format" ];
unpackPhase = '' unpackPhase = ''
mkdir src mkdir src
pushd src pushd src
@ -22,10 +24,9 @@ stdenv.mkDerivation rec {
sourceRoot=`pwd`/src sourceRoot=`pwd`/src
''; '';
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysql buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysql makeWrapper ];
makeWrapper ];
NIX_LDFLAGS="-L${stdenv.lib.getLib libmysql}/lib/mysql"; NIX_LDFLAGS = "-L${stdenv.lib.getLib libmysql}/lib/mysql";
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/zod mkdir -p $out/bin $out/share/zod