Commit 04eaa917 authored by Nick Cao's avatar Nick Cao Committed by github-actions[bot]
Browse files

qt6.qtbase: derive plugin load path from PATH

(cherry picked from commit da086000)
parent 17ce419a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;