summary refs log tree commit diff
path: root/pkgs/applications/networking/newsreaders
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-21 07:44:40 -0500
committerWill Dietz <w@wdtz.org>2018-03-21 09:47:55 -0500
commit96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5 (patch)
treeb32336dc2dd81753cb2265f8f9f976ba1f4a942d /pkgs/applications/networking/newsreaders
parent8265979114071ebdc633f663a6bdb0deb0b0b8fc (diff)
downloadnixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar.gz
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar.bz2
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar.lz
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar.xz
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.tar.zst
nixpkgs-96f0d4e98cd0be7c05b4b2d0a3a6d8db2c6726c5.zip
pan: wrap to provide gpg2, which it crashes without
Fixes #37556.
Diffstat (limited to 'pkgs/applications/networking/newsreaders')
-rw-r--r--pkgs/applications/networking/newsreaders/pan/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/newsreaders/pan/default.nix b/pkgs/applications/networking/newsreaders/pan/default.nix
index 42788cfe1a5..34e24823e46 100644
--- a/pkgs/applications/networking/newsreaders/pan/default.nix
+++ b/pkgs/applications/networking/newsreaders/pan/default.nix
@@ -1,6 +1,7 @@
 { spellChecking ? true
 , stdenv, fetchurl, pkgconfig, gtk2, gtkspell2 ? null
 , perl, pcre, gmime, gettext, intltool, itstool, libxml2, dbus-glib, libnotify
+, makeWrapper, gnupg
 }:
 
 assert spellChecking -> gtkspell2 != null;
@@ -15,10 +16,14 @@ stdenv.mkDerivation {
     sha256 = "0l07y75z8jxhbmfv28slw81gjncs7i89x7fq44zif7xhq5vy7yli";
   };
 
-  nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ gtk2 perl gmime gettext intltool itstool libxml2 dbus-glib libnotify ]
+  nativeBuildInputs = [ pkgconfig makeWrapper ];
+  buildInputs = [ gtk2 perl gmime gettext gnupg intltool itstool libxml2 dbus-glib libnotify ]
     ++ stdenv.lib.optional spellChecking gtkspell2;
 
+  postInstall = ''
+    wrapProgram $out/bin/pan --suffix PATH : ${gnupg}/bin
+  '';
+
   enableParallelBuilding = true;
 
   meta = {