2024-01-13 08:15:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, qttools, packagekit }:
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
let
|
|
|
|
isQt6 = lib.versions.major qttools.version == "6";
|
|
|
|
in stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "packagekit-qt";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "PackageKit-Qt";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-pwDMLd+Gpl0P2ImPjGeZpKAOJ4dH5+P1se0l1qm5Ui0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ packagekit ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_QT6" isQt6) ];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = packagekit.meta // {
|
|
|
|
description = "System to facilitate installing and updating packages - Qt";
|
|
|
|
};
|
|
|
|
}
|