Unverified Commit 8f508af8 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

urbanterror: fix `configurePhase` phase

Use `preConfigure` and external file instead.
parent b2871a6c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
USE_CURL = 1
USE_CURL_DLOPEN = 0
USE_FREETYPE = 1
USE_OPENAL = 1
USE_OPENAL_DLOPEN = 0
+2 −9
Original line number Diff line number Diff line
@@ -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" ];