Skip to content

Commit

Permalink
thunderbird: Add gpg/gpgme dependencies. Fixes #98765.
Browse files Browse the repository at this point in the history
This enables to configure Thunderbird to use gnupg directly, which is the
official upstream recommendation when using GPG with smartcards, which are not
yet supported by Thunderbird's native GPG support.
  • Loading branch information
nh2 committed Dec 17, 2020
1 parent fe8f558 commit 2767936
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/applications/networking/mailreaders/thunderbird/default.nix
Expand Up @@ -15,6 +15,8 @@
, glib
, gnugrep
, gnused
, gnupg
, gpgme
, icu
, jemalloc
, lib
Expand Down Expand Up @@ -288,6 +290,15 @@ stdenv.mkDerivation rec {
rm -rf $out/include $out/lib/thunderbird-devel-* $out/share/idl
'';

# Note on GPG support:
# 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.

preFixup = ''
# Needed to find Mozilla runtime
gappsWrapperArgs+=(
Expand All @@ -297,6 +308,8 @@ stdenv.mkDerivation rec {
--set SNAP_NAME "thunderbird"
--set MOZ_LEGACY_PROFILES 1
--set MOZ_ALLOW_DOWNGRADE 1
--prefix PATH : "${lib.getBin gnupg}/bin"
--prefix LD_LIBRARY_PATH : "${lib.getLib gpgme}/lib"
)
'';

Expand Down

0 comments on commit 2767936

Please sign in to comment.