From 74f0d69a4bc98f616c52fbe9f74dcab9a81d7090 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 22 Apr 2026 12:13:31 +0200 Subject: [PATCH] qdjango: Fix tests Wants sqlite driver. --- pkgs/development/libraries/qdjango/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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