urbanterror: add missing phase hooks

This commit is contained in:
Pol Dellaiera 2023-08-19 17:19:10 +02:00
parent 9949be2f80
commit 7082007e68
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -20,13 +20,19 @@ stdenv.mkDerivation rec {
sourceRoot = "ioq3-for-UrbanTerror-4-release-${version}";
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
'';
installPhase = ''
runHook preInstall
destDir="$out/opt/urbanterror"
mkdir -p "$destDir"
mkdir -p "$out/bin"
@ -47,6 +53,8 @@ stdenv.mkDerivation rec {
exec ./Quake3-UrT-Ded "\$@"
EOF
chmod +x "$out/bin/urbanterror-ded"
runHook postInstall
'';
postFixup = ''