2021-10-16 12:22:24 +00:00
# Qt packages set.
#
# Attributes in this file are packages requiring Qt and will be made available
# for every Qt version. Qt applications are called from `all-packages.nix` via
# this file.
{ lib
2023-11-11 19:27:08 +00:00
, __splicedPackages
, makeScopeWithSplicing'
, generateSplicesForMkScope
2023-01-23 22:56:22 +00:00
, stdenv
2023-11-24 14:35:29 +00:00
, pkgsHostTarget
2021-10-16 12:22:24 +00:00
} :
let
2023-11-11 19:27:08 +00:00
pkgs = __splicedPackages ;
# qt6 set should not be pre-spliced to prevent spliced packages being a part of an unspliced set
# 'pkgsCross.aarch64-multiplatform.pkgsBuildTarget.targetPackages.qt6Packages.qtbase' should not have a `__spliced` but if qt6 is pre-spliced then it will have one.
2023-11-24 14:35:29 +00:00
# pkgsHostTarget == pkgs
qt6 = pkgsHostTarget . qt6 ;
2021-10-16 12:22:24 +00:00
in
2023-11-11 19:27:08 +00:00
makeScopeWithSplicing' {
otherSplices = generateSplicesForMkScope " q t 6 P a c k a g e s " ;
f = ( self : let
inherit ( self ) callPackage ;
noExtraAttrs = set : lib . attrsets . removeAttrs set [ " e x t e n d " " o v e r r i d e " " o v e r r i d e S c o p e " " o v e r r i d e S c o p e ' " " o v e r r i d e D e r i v a t i o n " ] ;
in ( noExtraAttrs qt6 ) // {
2023-01-23 22:56:22 +00:00
inherit stdenv ;
2022-05-28 08:27:03 +00:00
# LIBRARIES
2023-03-07 21:17:10 +00:00
qt6ct = callPackage ../tools/misc/qt6ct { } ;
2023-07-26 17:51:40 +00:00
qt6gtk2 = callPackage ../tools/misc/qt6gtk2 { } ;
2023-04-28 07:48:05 +00:00
qtkeychain = callPackage ../development/libraries/qtkeychain {
inherit ( pkgs . darwin . apple_sdk . frameworks ) CoreFoundation Security ;
} ;
2022-11-16 03:42:19 +00:00
qtpbfimageplugin = callPackage ../development/libraries/qtpbfimageplugin { } ;
2023-08-03 15:01:56 +00:00
qtstyleplugin-kvantum = callPackage ../development/libraries/qtstyleplugin-kvantum {
qt5Kvantum = pkgs . libsForQt5 . qtstyleplugin-kvantum ;
} ;
2023-03-27 13:19:36 +00:00
2022-05-28 08:27:03 +00:00
quazip = callPackage ../development/libraries/quazip { } ;
2022-08-26 18:53:02 +00:00
2023-09-20 16:08:53 +00:00
qscintilla = callPackage ../development/libraries/qscintilla { } ;
2022-11-04 16:16:02 +00:00
qxlsx = callPackage ../development/libraries/qxlsx { } ;
2023-10-13 13:17:39 +00:00
qzxing = callPackage ../development/libraries/qzxing { } ;
2022-08-26 18:53:02 +00:00
poppler = callPackage ../development/libraries/poppler {
lcms = pkgs . lcms2 ;
qt6Support = true ;
suffix = " q t 6 " ;
} ;
2023-11-11 19:27:08 +00:00
2023-11-30 05:43:02 +00:00
# Not a library, but we do want it to be built for every qt version there
# is, to allow users to choose the right build if needed.
sddm = callPackage ../applications/display-managers/sddm { } ;
2023-11-11 19:27:08 +00:00
} // lib . optionalAttrs pkgs . config . allowAliases {
# Convert to a throw on 01-01-2023.
# Warnings show up in various cli tool outputs, throws do not.
# Remove completely before 24.05
overrideScope' = lib . warn " q t 6 P a c k a g e s n o w u s e s m a k e S c o p e W i t h S p l i c i n g w h i c h d o e s n o t h a v e \" o v e r r i d e S c o p e ' \" , u s e \" o v e r r i d e S c o p e \" . " self . overrideScope ;
} ) ;
}