about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2014-11-19 18:02:41 +0300
committerNikolay Amiantov <ab@fmap.me>2014-11-19 19:48:01 +0300
commit9c658343dd2a6bc27e6e98c4c255fb44561151ca (patch)
tree8ff9b8b8b6aa0c8b2c1eef792816d0052b60afb3 /pkgs/applications/networking
parenta726dd7697df2f190d0f513b710a04476a66cb33 (diff)
downloadnixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar.gz
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar.bz2
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar.lz
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar.xz
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.tar.zst
nixlib-9c658343dd2a6bc27e6e98c4c255fb44561151ca.zip
mutt-with-sidebar: simplify, fix checksum
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/mailreaders/mutt/default.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix
index 4091876cbe3c..7c60864b486c 100644
--- a/pkgs/applications/networking/mailreaders/mutt/default.nix
+++ b/pkgs/applications/networking/mailreaders/mutt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses, which, perl, automake, autoconf
+{ stdenv, fetchurl, ncurses, which, perl, autoreconfHook
 , sslSupport ? true
 , imapSupport ? true
 , headerCache ? true
@@ -14,6 +14,7 @@
 assert headerCache -> gdbm != null;
 assert sslSupport -> openssl != null;
 assert saslSupport -> cyrus_sasl != null;
+assert gpgmeSupport -> gpgme != null;
 
 let
   version = "1.5.23";
@@ -26,15 +27,14 @@ stdenv.mkDerivation rec {
     sha256 = "0dzx4qk50pjfsb6cs5jahng96a52k12f7pm0sc78iqdrawg71w1s";
   };
 
-  buildInputs = [
-    ncurses which perl
-    (if headerCache then gdbm else null)
-    (if sslSupport then openssl else null)
-    (if saslSupport then cyrus_sasl else null)
-    (if gpgmeSupport then gpgme else null)
-  ]
-  ++ (stdenv.lib.optionals withSidebar [automake autoconf])
-  ;
+  buildInputs = with stdenv.lib;
+    [ ncurses which perl ]
+    ++ optional headerCache gdbm
+    ++ optional sslSupport openssl
+    ++ optional saslSupport cyrus_sasl
+    ++ optional gpgmeSupport gpgme;
+
+  nativeBuildInputs = stdenv.lib.optional withSidebar autoreconfHook;
 
   configureFlags = [
     "--with-mailpath=" "--enable-smtp"
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
   patches = [] ++
     (stdenv.lib.optional withSidebar (fetchurl {
       url = http://lunar-linux.org/~tchan/mutt/patch-1.5.23.sidebar.20140412.txt;
-      sha256 = "0bq556sycl0qkr5vg5c3l16bh2bifqc2j7d64n4hw19q0ba2b45w";
+      sha256 = "1i2r7dj0pd1k0z3jjxn2szi6sf0k28i8dwhr4f65pn8r2lh3wisz";
     }));
 
   meta = with stdenv.lib; {