depot/third_party/nixpkgs/pkgs/tools/package-management/packagekit/qt.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

28 lines
682 B
Nix

{ 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";
};
}