forked from mirrors/nixpkgs
commit
42c5aedcde
|
@ -22,6 +22,7 @@
|
|||
, gst-vaapi
|
||||
, gtk3
|
||||
, dconf
|
||||
, libglvnd
|
||||
, buildPackages
|
||||
|
||||
# options
|
||||
|
@ -57,6 +58,34 @@ let
|
|||
./patches/qtbase-tzdir.patch
|
||||
];
|
||||
};
|
||||
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 { };
|
||||
|
|
20
pkgs/development/libraries/qt-6/qt-env.nix
Normal file
20
pkgs/development/libraries/qt-6/qt-env.nix
Normal file
|
@ -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
|
||||
'';
|
||||
}
|
|
@ -22059,6 +22059,7 @@ with pkgs;
|
|||
inherit bison cups dconf harfbuzz libGL perl gtk3 ninja;
|
||||
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi;
|
||||
inherit buildPackages;
|
||||
inherit libglvnd;
|
||||
cmake = cmake.overrideAttrs (attrs: {
|
||||
patches = attrs.patches ++ [
|
||||
../development/libraries/qt-6/patches/cmake.patch
|
||||
|
|
Loading…
Reference in a new issue