summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-6
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-07-16 15:30:49 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-07-16 15:32:16 +0200
commitee1b9e6f7bd43f05684805ae376caf16330fa96e (patch)
tree02e6aa90e4c5a06690c1cdf32ae853bc501b26e6 /pkgs/development/libraries/qt-6
parent4aca31fd40bf2bc7919c54c7305dcbcb0f0d0c1b (diff)
qt6.full: add
Diffstat (limited to 'pkgs/development/libraries/qt-6')
-rw-r--r--pkgs/development/libraries/qt-6/default.nix29
-rw-r--r--pkgs/development/libraries/qt-6/qt-env.nix20
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix
index 8c12cc2fb671a..d6950538e741c 100644
--- a/pkgs/development/libraries/qt-6/default.nix
+++ b/pkgs/development/libraries/qt-6/default.nix
@@ -19,6 +19,7 @@
 , gst-plugins-base
 , gtk3
 , dconf
+, libglvnd
 , buildPackages
 
   # options
@@ -50,6 +51,34 @@ let
         inherit (srcs.qtbase) src version;
         inherit bison cups harfbuzz libGL dconf gtk3 developerBuild cmake;
       };
+      env = callPackage ./qt-env.nix {};
+      full = env "qt-full-${qtbase.version}" ([
+        qt3d
+        qt5compat
+        qtcharts
+        qtconnectivity
+        qtdeclarative
+        qtdoc
+        qtimageformats
+        qtlottie
+        qtmultimedia
+        qtnetworkauth
+        qtpositioning
+        qtsensors
+        qtserialbus
+        qtserialport
+        qtshadertools
+        qtquick3d
+        qtsvg
+        qtscxml
+        qttools
+        qttranslations
+        qtvirtualkeyboard
+        qtwebchannel
+        qtwebengine
+        qtwebsockets
+        qtwebview
+      ] ++ lib.optionals (!stdenv.isDarwin) [ qtwayland libglvnd ]);
 
       qt3d = callPackage ./modules/qt3d.nix { };
       qt5compat = callPackage ./modules/qt5compat.nix { };
diff --git a/pkgs/development/libraries/qt-6/qt-env.nix b/pkgs/development/libraries/qt-6/qt-env.nix
new file mode 100644
index 0000000000000..0b41f0c073517
--- /dev/null
+++ b/pkgs/development/libraries/qt-6/qt-env.nix
@@ -0,0 +1,20 @@
+{ buildEnv, qtbase }: name: paths:
+
+buildEnv {
+  inherit name;
+  paths = [ qtbase ] ++ paths;
+
+  pathsToLink = [ "/bin" "/mkspecs" "/include" "/lib" "/share" "/libexec" ];
+  extraOutputsToInstall = [ "out" "dev" ];
+
+  postBuild = ''
+    rm "$out/bin/qmake"
+    cp "${qtbase.dev}/bin/qmake" "$out/bin"
+    cat >"$out/bin/qt.conf" <<EOF
+    [Paths]
+    Prefix = $out
+    Plugins = ${qtbase.qtPluginPrefix}
+    Qml2Imports = ${qtbase.qtQmlPrefix}
+    EOF
+  '';
+}