Skip to content

Commit

Permalink
qt6.qtbase: add passthru.plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Oct 30, 2024
1 parent 7613a6b commit a598e75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/development/libraries/qt-6/modules/qtbase.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ stdenv
, runCommand
, lib
, src
, patches ? [ ]
Expand Down Expand Up @@ -94,7 +95,7 @@
let
isCrossBuild = !stdenv.buildPlatform.canExecute stdenv.hostPlatform;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: rec {
pname = "qtbase";

inherit src version;
Expand Down Expand Up @@ -257,6 +258,13 @@ stdenv.mkDerivation rec {

dontWrapQtApps = true;

passthru = {
plugins = runCommand "${finalAttrs.finalPackage.name}-only-plugins" { } ''
mkdir -p "$out/lib/qt-6/plugins"
ln -s "${finalAttrs.finalPackage}/lib/qt-6/plugins" "$out/lib/qt-6/plugins"
'';
};

setupHook = ../hooks/qtbase-setup-hook.sh;

meta = with lib; {
Expand All @@ -266,4 +274,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ milahu nickcao LunNova ];
platforms = platforms.unix ++ platforms.windows;
};
}
})

0 comments on commit a598e75

Please sign in to comment.