about summary refs log tree commit diff
path: root/pkgs/tools/package-management/packagekit/qt.nix
blob: 79350e340f90ac542005e46b3fd6df18b72f9629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
, qttools, packagekit }:

let
  isQt6 = lib.versions.major qttools.version == "6";
in stdenv.mkDerivation rec {
  pname = "packagekit-qt";
  version = "1.1.2";

  src = fetchFromGitHub {
    owner  = "hughsie";
    repo   = "PackageKit-Qt";
    rev    = "v${version}";
    sha256 = "sha256-rLNeVjzIT18qUZgj6Qcf7E59CL4gx/ArYJfs9KHrqNs=";
  };

  buildInputs = [ packagekit ];

  nativeBuildInputs = [ cmake pkg-config qttools ];

  cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_QT6" isQt6) ];

  dontWrapQtApps = true;

  meta = packagekit.meta // {
    description = "System to facilitate installing and updating packages - Qt";
  };
}