1 { mkDerivation, lib, extra-cmake-modules, pam, socat, libgcrypt, qtbase, kwallet, }:
5 nativeBuildInputs = [ extra-cmake-modules ];
6 buildInputs = [ pam socat libgcrypt qtbase kwallet ];
8 sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|"
11 # We get a crash when QT_PLUGIN_PATH is more than 1000 characters.
12 # pam_kwallet_init passes its environment to kwalletd5, but
13 # wrapQtApps gives our environment a huge QT_PLUGIN_PATH value. We
14 # are able to unset it here since kwalletd5 will have its own
17 wrapProgram $out/libexec/pam_kwallet_init --unset QT_PLUGIN_PATH
20 dontWrapQtApps = true;