1 { stdenv, lib, fetchFromGitHub, cmake, pkg-config
2 , qttools, packagekit }:
5 isQt6 = lib.versions.major qttools.version == "6";
6 in stdenv.mkDerivation rec {
7 pname = "packagekit-qt";
10 src = fetchFromGitHub {
12 repo = "PackageKit-Qt";
14 sha256 = "sha256-rLNeVjzIT18qUZgj6Qcf7E59CL4gx/ArYJfs9KHrqNs=";
17 buildInputs = [ packagekit ];
19 nativeBuildInputs = [ cmake pkg-config qttools ];
21 cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_QT6" isQt6) ];
23 dontWrapQtApps = true;
25 meta = packagekit.meta // {
26 description = "System to facilitate installing and updating packages - Qt";