diff --git a/pkgs/games/quake3/ioquake/Makefile.local b/pkgs/games/quake3/ioquake/Makefile.local new file mode 100644 index 000000000000..9f487970eabc --- /dev/null +++ b/pkgs/games/quake3/ioquake/Makefile.local @@ -0,0 +1,6 @@ +USE_CURL = 1 +USE_CURL_DLOPEN = 0 +USE_FREETYPE = 1 +USE_INTERNAL_LIBS = 0 +USE_OPENAL = 1 +USE_OPENAL_DLOPEN = 0 diff --git a/pkgs/games/quake3/ioquake/default.nix b/pkgs/games/quake3/ioquake/default.nix index 7161b9474f24..437b99ae3439 100644 --- a/pkgs/games/quake3/ioquake/default.nix +++ b/pkgs/games/quake3/ioquake/default.nix @@ -16,6 +16,7 @@ , libjpeg , makeDesktopItem , freetype +, mumble }: stdenv.mkDerivation { @@ -47,11 +48,14 @@ stdenv.mkDerivation { libvorbis libjpeg freetype + mumble ]; enableParallelBuilding = true; - makeFlags = [ "USE_INTERNAL_LIBS=0" "USE_FREETYPE=1" "USE_OPENAL_DLOPEN=0" "USE_CURL_DLOPEN=0" ]; + preConfigure = '' + cp ${./Makefile.local} ./Makefile.local + ''; installTargets = [ "copyfiles" ]; diff --git a/pkgs/games/urbanterror/Makefile.local b/pkgs/games/urbanterror/Makefile.local new file mode 100644 index 000000000000..aee08a8ade79 --- /dev/null +++ b/pkgs/games/urbanterror/Makefile.local @@ -0,0 +1,5 @@ +USE_CURL = 1 +USE_CURL_DLOPEN = 0 +USE_FREETYPE = 1 +USE_OPENAL = 1 +USE_OPENAL_DLOPEN = 0 diff --git a/pkgs/games/urbanterror/default.nix b/pkgs/games/urbanterror/default.nix index 6c54984eccbf..a1bf80784d03 100644 --- a/pkgs/games/urbanterror/default.nix +++ b/pkgs/games/urbanterror/default.nix @@ -56,15 +56,8 @@ stdenv.mkDerivation { SDL ]; - configurePhase = '' - runHook preConfigure - - echo "USE_OPENAL = 1" > Makefile.local - echo "USE_OPENAL_DLOPEN = 0" >> Makefile.local - echo "USE_CURL = 1" >> Makefile.local - echo "USE_CURL_DLOPEN = 0" >> Makefile.local - - runHook postConfigure + preConfigure = '' + cp ${./Makefile.local} ./Makefile.local ''; installTargets = [ "copyfiles" ];