2017-05-15 17:05:35 +00:00
|
|
|
{
|
2022-03-24 14:48:17 +00:00
|
|
|
lib, mkDerivation, propagate,
|
|
|
|
extra-cmake-modules, kcoreaddons, qttools,
|
|
|
|
enablePolkit ? true, polkit-qt
|
2017-05-15 17:05:35 +00:00
|
|
|
}:
|
2016-04-21 15:32:21 +00:00
|
|
|
|
2017-05-15 17:05:35 +00:00
|
|
|
mkDerivation {
|
2022-02-23 17:28:27 +00:00
|
|
|
pname = "kauth";
|
2017-05-22 18:49:07 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2022-03-24 16:32:12 +00:00
|
|
|
buildInputs = lib.optional enablePolkit polkit-qt ++ [ qttools ];
|
2017-05-22 18:49:07 +00:00
|
|
|
propagatedBuildInputs = [ kcoreaddons ];
|
2020-08-25 09:43:59 +00:00
|
|
|
patches = [
|
|
|
|
./cmake-install-paths.patch
|
|
|
|
];
|
2017-05-22 18:49:07 +00:00
|
|
|
# library stores reference to plugin path,
|
|
|
|
# separating $out from $bin would create a reference cycle
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
setupHook = propagate "out";
|
2016-04-21 15:32:21 +00:00
|
|
|
}
|