Commit 74f0d69a authored by OPNA2608's avatar OPNA2608
Browse files

qdjango: Fix tests

Wants sqlite driver.
parent 16c855b0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  testers,
  doxygen,
  qmake,
  qtbase,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -55,7 +56,10 @@ stdenv.mkDerivation (finalAttrs: {

  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

  preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
  preCheck = ''
    export QT_PLUGIN_PATH=${lib.getBin qtbase}/${qtbase.qtPluginPrefix}
  ''
  + lib.optionalString stdenv.hostPlatform.isDarwin ''
    # at this point in the build, install_name for dylibs hasn't been patched yet so we need to set the library path.
    # for some reason, this doesn't work when just exporting the needed paths even though the autogenerated wrappers
    # should at most prepend paths? just patch them into the wrappers instead