Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 qttools, 8 packagekit, 9}: 10 11let 12 isQt6 = lib.versions.major qttools.version == "6"; 13in 14stdenv.mkDerivation rec { 15 pname = "packagekit-qt"; 16 version = "1.1.2"; 17 18 src = fetchFromGitHub { 19 owner = "hughsie"; 20 repo = "PackageKit-Qt"; 21 rev = "v${version}"; 22 sha256 = "sha256-rLNeVjzIT18qUZgj6Qcf7E59CL4gx/ArYJfs9KHrqNs="; 23 }; 24 25 buildInputs = [ packagekit ]; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 qttools 31 ]; 32 33 cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_QT6" isQt6) ]; 34 35 dontWrapQtApps = true; 36 37 meta = packagekit.meta // { 38 description = "System to facilitate installing and updating packages - Qt"; 39 }; 40}