-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos: Fix pam_kwallet5 integration #28470
Conversation
@@ -281,7 +281,7 @@ let | |||
"auth optional ${pkgs.pam_mount}/lib/security/pam_mount.so"} | |||
${optionalString cfg.enableKwallet | |||
("auth optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" + | |||
" kwalletd=${pkgs.libsForQt5.kwallet}/bin/kwalletd5")} | |||
" kwalletd=${pkgs.libsForQt5.kwallet.bin}/bin/kwalletd5")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I suggest to use lib.getBin pkgs.libsForQt5.kwallet
instead? That would ensure that the correct path is found even if the outputs of kwallet
change later.
BTW, rest of Nixpkgs follows the convention that binaries are in the first output which (Also path to |
Is this policy stated anywhere? If Qt-based packages complied with this policy, we could no longer put binaries in their own output. (Qt libraries must go in the first output.) |
https://nixos.org/nixpkgs/manual/#idm140737318570400
|
OK, I will have to go through and remove the @benley I will merge this as-is to fix the problem, but it will be shortly obsolete anyway. |
Can you describe in what way Qt assumes that libraries are in the first output, and why that assumption can't be fixed instead? |
The last time I tried this was while There are probably ways to mitigate this ( |
Yes I'm pretty sure things have changed since then. This is basically the only code in stdenv builder that cares about the first output:
where
(it's also dead code I think, since the stdenv builder explodes in other ways if there is no Also I did get a clean compile of kwallet with this change (though of course that doesn't seem to be everything):
|
Fixes #28469
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)