summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-08-21 22:00:46 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2023-08-21 22:00:46 +0200
commit8f508af8dce8fa5145ef6562449564a6b583da1c (patch)
tree44d9d899f64937a685e6927a8fcfa18648552d22
parentioquake3: fix `preConfigure` phase (diff)
downloadnixpkgs-origin/quake3-urbanterror-fix-preconfigure-phase.tar.gz
urbanterror: fix `configurePhase` phaseorigin/quake3-urbanterror-fix-preconfigure-phase
Use `preConfigure` and external file instead.
-rw-r--r--pkgs/games/urbanterror/Makefile.local5
-rw-r--r--pkgs/games/urbanterror/default.nix11
2 files changed, 7 insertions, 9 deletions
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" ];