diff --git a/pkgs/development/libraries/qdjango/default.nix b/pkgs/development/libraries/qdjango/default.nix index 1105f2839325..d0f1a66b440a 100644 --- a/pkgs/development/libraries/qdjango/default.nix +++ b/pkgs/development/libraries/qdjango/default.nix @@ -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