depot/third_party/nixpkgs/pkgs/tools/package-management/packagekit/qt.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01: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.1";
src = fetchFromGitHub {
owner = "hughsie";
repo = "PackageKit-Qt";
rev = "v${version}";
sha256 = "sha256-pwDMLd+Gpl0P2ImPjGeZpKAOJ4dH5+P1se0l1qm5Ui0=";
};
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";
};
}