libsForQt5.kdesu: add option to use sudo instead of su
This commit is contained in:
parent
4f1d59ffe5
commit
9f7a69608a
@ -2,6 +2,7 @@
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, ki18n, kpty, kservice, qtbase,
|
||||
useSudo ? false
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
@ -11,5 +12,6 @@ mkDerivation {
|
||||
propagatedBuildInputs = [ kpty ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [ ./kdesu-search-for-wrapped-daemon-first.patch ];
|
||||
cmakeFlags = lib.optionals useSudo [ "-DKDESU_USE_SUDO_DEFAULT=On" ];
|
||||
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user