qt6.qtbase: derive plugin load path from PATH

This commit is contained in:
Nick Cao 2023-11-27 10:41:49 -05:00
parent 53ad6fd1b4
commit da08600073
No known key found for this signature in database

View File

@ -11,11 +11,9 @@
, lndir
, perl
, pkg-config
, python3
, which
, cmake
, ninja
, ccache
, xmlstarlet
, libproxy
, xorg
@ -236,11 +234,13 @@ stdenv.mkDerivation rec {
"-DQT_FEATURE_cxx17_filesystem=OFF"
] ++ lib.optional (qttranslations != null) "-DINSTALL_TRANSLATIONSDIR=${qttranslations}/translations";
NIX_LDFLAGS = toString (lib.optionals stdenv.isDarwin [
env.NIX_LDFLAGS = toString (lib.optionals stdenv.isDarwin [
# Undefined symbols for architecture arm64: "___gss_c_nt_hostbased_service_oid_desc"
"-framework GSS"
]);
env.NIX_CFLAGS_COMPILE = "-DNIXPKGS_QT_PLUGIN_PREFIX=\"${qtPluginPrefix}\"";
outputs = [ "out" "dev" ];
moveToDev = false;