
This needs a compatible env as kwalletd daemon. Need to wrap it to correct this. Fixes #68316
15 lines
417 B
Nix
15 lines
417 B
Nix
{ mkDerivation, lib, extra-cmake-modules, pam, socat, libgcrypt, qtbase, kwallet, }:
|
|
|
|
mkDerivation {
|
|
name = "kwallet-pam";
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
buildInputs = [ pam socat libgcrypt qtbase kwallet ];
|
|
postPatch = ''
|
|
sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|"
|
|
'';
|
|
postFixup = ''
|
|
wrapQtApp $out/libexec/pam_kwallet_init
|
|
'';
|
|
dontWrapQtApps = true;
|
|
}
|