packagekit-qt: add Qt6 support

This commit is contained in:
K900 2023-11-11 17:44:40 +03:00
parent 8cf720ba33
commit 194dd38532
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,9 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
, qttools, packagekit }:
stdenv.mkDerivation rec {
let
isQt6 = lib.versions.major qttools.version == "6";
in stdenv.mkDerivation rec {
pname = "packagekit-qt";
version = "1.1.1";
@ -16,6 +18,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config qttools ];
cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_QT6" isQt6) ];
dontWrapQtApps = true;
meta = packagekit.meta // {

View File

@ -34,6 +34,7 @@ makeScopeWithSplicing' {
qca = pkgs.darwin.apple_sdk_11_0.callPackage ../development/libraries/qca {
inherit (qt6) qtbase qt5compat;
};
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
qt6ct = callPackage ../tools/misc/qt6ct { };