Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 mkDerivation,
5 propagate,
6 extra-cmake-modules,
7 kcoreaddons,
8 qttools,
9 enablePolkit ? stdenv.hostPlatform.isLinux,
10 polkit-qt,
11}:
12
13mkDerivation {
14 pname = "kauth";
15 nativeBuildInputs = [ extra-cmake-modules ];
16 buildInputs = lib.optional enablePolkit polkit-qt ++ [ qttools ];
17 propagatedBuildInputs = [ kcoreaddons ];
18 patches = [
19 ./cmake-install-paths.patch
20 ];
21 # library stores reference to plugin path,
22 # separating $out from $bin would create a reference cycle
23 outputs = [
24 "out"
25 "dev"
26 ];
27 setupHook = propagate "out";
28}