summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mailreaders
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2020-12-17 23:29:06 +0100
committerNiklas Hambüchen <mail@nh2.me>2020-12-18 00:36:55 +0100
commit2767936180704f4fa7aab886594703985698c2cc (patch)
tree98ab8ddf2350148eec5c92b45a056120f6f84d7e /pkgs/applications/networking/mailreaders
parentfe8f5586d5955dca0207d76b1514fba8efb257aa (diff)
thunderbird: Add gpg/gpgme dependencies. Fixes #98765.
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.
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r--pkgs/applications/networking/mailreaders/thunderbird/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/thunderbird/default.nix b/pkgs/applications/networking/mailreaders/thunderbird/default.nix
index ac8eb2f811bf..8a2c891c16b3 100644
--- a/pkgs/applications/networking/mailreaders/thunderbird/default.nix
+++ b/pkgs/applications/networking/mailreaders/thunderbird/default.nix
@@ -15,6 +15,8 @@
, glib
, gnugrep
, gnused
+, gnupg
+, gpgme
, icu
, jemalloc
, lib
@@ -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+=(
@@ -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"
)
'';