Merge pull request #160954 from a-m-joseph/kauth-without-polkit

kauth: make polkit dependency optional
This commit is contained in:
Thomas Tuegel 2022-03-24 14:54:35 -05:00 committed by GitHub
commit b4f94f8d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,13 @@
{
mkDerivation, propagate,
extra-cmake-modules, kcoreaddons, polkit-qt, qttools
lib, mkDerivation, propagate,
extra-cmake-modules, kcoreaddons, qttools,
enablePolkit ? true, polkit-qt
}:
mkDerivation {
name = "kauth";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ polkit-qt qttools ];
buildInputs = lib.optional enablePolkit polkit-qt ++ [ qttools ];
propagatedBuildInputs = [ kcoreaddons ];
patches = [
./cmake-install-paths.patch