urbanterror: fix configurePhase phase

Use `preConfigure` and external file instead.
This commit is contained in:
Pol Dellaiera 2023-08-21 22:00:46 +02:00
parent b2871a6ca8
commit 8f508af8dc
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
2 changed files with 7 additions and 9 deletions

View File

@ -0,0 +1,5 @@
USE_CURL = 1
USE_CURL_DLOPEN = 0
USE_FREETYPE = 1
USE_OPENAL = 1
USE_OPENAL_DLOPEN = 0

View File

@ -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" ];