mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
a296cc254f
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;
|
|
}
|