Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
32 lines
875 B
Nix
32 lines
875 B
Nix
{
|
|
lib,
|
|
wrapFirefox,
|
|
gpgme,
|
|
gnupg,
|
|
}:
|
|
|
|
browser: args:
|
|
|
|
(wrapFirefox browser (
|
|
{
|
|
libName = "thunderbird";
|
|
}
|
|
// args
|
|
))
|
|
|
|
.overrideAttrs
|
|
(old: {
|
|
# Thunderbird's native GPG support does not yet support smartcards.
|
|
# The official upstream recommendation is to configure fall back to gnupg
|
|
# using the Thunderbird config `mail.openpgp.allow_external_gnupg`
|
|
# and GPG keys set up; instructions with pictures at:
|
|
# https://anweshadas.in/how-to-use-yubikey-or-any-gpg-smartcard-in-thunderbird-78/
|
|
# For that to work out of the box, it requires `gnupg` on PATH and
|
|
# `gpgme` in `LD_LIBRARY_PATH`; we do this below.
|
|
buildCommand = old.buildCommand + ''
|
|
wrapProgram "$executablePath" \
|
|
--prefix LD_LIBRARY_PATH ':' "${lib.makeLibraryPath [ gpgme ]}" \
|
|
--prefix PATH ':' "${lib.makeBinPath [ gnupg ]}"
|
|
'';
|
|
})
|