diff options
| -rw-r--r-- | gnu/packages/mail.scm | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 689e25bd1a0..9ba8bdf5740 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm | |||
| @@ -802,7 +802,6 @@ operating systems.") | |||
| 802 | ("docbook-xml" ,docbook-xml-4.2) | 802 | ("docbook-xml" ,docbook-xml-4.2) |
| 803 | ("w3m" ,w3m) | 803 | ("w3m" ,w3m) |
| 804 | ("tcl" ,tcl) | 804 | ("tcl" ,tcl) |
| 805 | |||
| 806 | ;; Test file data for the unit tests included in the neomutt source. | 805 | ;; Test file data for the unit tests included in the neomutt source. |
| 807 | ("neomutt-test-files" | 806 | ("neomutt-test-files" |
| 808 | ,(let ((commit "8629adab700a75c54e8e28bf05ad092503a98f75")) | 807 | ,(let ((commit "8629adab700a75c54e8e28bf05ad092503a98f75")) |
| @@ -816,67 +815,68 @@ operating systems.") | |||
| 816 | (base32 | 815 | (base32 |
| 817 | "1ci04nqkab9mh60zzm66sd6mhsr6lya8wp92njpbvafc86vvwdlr"))))))) | 816 | "1ci04nqkab9mh60zzm66sd6mhsr6lya8wp92njpbvafc86vvwdlr"))))))) |
| 818 | (arguments | 817 | (arguments |
| 819 | `(#:test-target "test" | 818 | (list |
| 820 | #:configure-flags | 819 | #:test-target "test" |
| 821 | (list "--gpgme" | 820 | #:configure-flags |
| 822 | 821 | #~(list "--gpgme" | |
| 823 | ;; Database, implies header caching. | 822 | ;; Database, implies header caching. |
| 824 | "--disable-tokyocabinet" | 823 | "--disable-tokyocabinet" |
| 825 | "--disable-qdbm" | 824 | "--disable-qdbm" |
| 826 | "--disable-bdb" | 825 | "--disable-bdb" |
| 827 | "--lmdb" | 826 | "--lmdb" |
| 828 | "--kyotocabinet" | 827 | "--kyotocabinet" |
| 829 | 828 | ||
| 830 | "--gdbm" | 829 | "--gdbm" |
| 831 | 830 | ||
| 832 | "--gnutls" | 831 | "--gnutls" |
| 833 | "--ssl=1" | 832 | "--ssl=1" |
| 834 | "--sasl" | 833 | "--sasl" |
| 835 | (string-append "--with-sasl=" | 834 | (string-append "--with-sasl=" |
| 836 | (assoc-ref %build-inputs "cyrus-sasl")) | 835 | #$(this-package-input "cyrus-sasl")) |
| 837 | 836 | ||
| 838 | "--smime" | 837 | "--smime" |
| 839 | "--notmuch" | 838 | "--notmuch" |
| 840 | (string-append "--with-notmuch=" | 839 | (string-append "--with-notmuch=" |
| 841 | (assoc-ref %build-inputs "notmuch")) | 840 | #$(this-package-input "notmuch")) |
| 842 | 841 | ||
| 843 | "--idn2" | 842 | "--idn2" |
| 844 | 843 | ||
| 845 | ;; If we do not set this, neomutt wants to check | 844 | ;; If we do not set this, neomutt wants to check |
| 846 | ;; whether the path exists, which it does not | 845 | ;; whether the path exists, which it does not |
| 847 | ;; in the chroot. | 846 | ;; in the chroot. |
| 848 | "--with-mailpath=/var/mail" | 847 | "--with-mailpath=/var/mail" |
| 849 | 848 | (string-append "--with-ncurses=" | |
| 850 | (string-append "--with-ncurses=" | 849 | #$(this-package-input "ncurses")) |
| 851 | (assoc-ref %build-inputs "ncurses")) | 850 | (string-append "--prefix=" #$output) |
| 852 | (string-append "--prefix=" | 851 | "--zstd=1") |
| 853 | (assoc-ref %outputs "out")) | 852 | #:phases |
| 854 | "--zstd=1") | 853 | #~(modify-phases %standard-phases |
| 855 | #:phases | 854 | ;; TODO: autosetup is meant to be included in the source, |
| 856 | (modify-phases %standard-phases | 855 | ;; but we should package autosetup and use our own version of it. |
| 857 | ;; TODO: autosetup is meant to be included in the source, | 856 | (replace 'configure |
| 858 | ;; but we should package autosetup and use our own version of it. | 857 | (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) |
| 859 | (replace 'configure | 858 | (let* ((out (assoc-ref outputs "out")) |
| 860 | (lambda* (#:key outputs inputs configure-flags #:allow-other-keys) | 859 | (flags `(,@configure-flags)) |
| 861 | (let* ((out (assoc-ref outputs "out")) | 860 | (bash (which "bash"))) |
| 862 | (flags `(,@configure-flags)) | 861 | (setenv "SHELL" bash) |
| 863 | (bash (which "bash"))) | 862 | (setenv "CONFIG_SHELL" bash) |
| 864 | (setenv "SHELL" bash) | 863 | (apply invoke bash |
| 865 | (setenv "CONFIG_SHELL" bash) | 864 | (string-append (getcwd) "/configure") |
| 866 | (apply invoke bash | 865 | flags)))) |
| 867 | (string-append (getcwd) "/configure") | 866 | (add-before 'check 'prepare-test-files |
| 868 | flags)))) | 867 | (lambda _ |
| 869 | (add-before 'check 'prepare-test-files | 868 | (copy-recursively |
| 870 | (lambda* (#:key inputs #:allow-other-keys) | 869 | #$(this-package-native-input "neomutt-test-files") |
| 871 | (copy-recursively (assoc-ref inputs "neomutt-test-files") "tests") | 870 | "tests") |
| 872 | ;; FIXME: investigate why tests are failing, Nix is also disabling one | 871 | ;; FIXME: investigate why tests are failing, Nix also disables |
| 873 | (substitute* "test/main.c" | 872 | ;; (a different) one: test_expando_node_padding. |
| 874 | (("NEOMUTT_TEST_ITEM\\(test_expando_filter\\)") "") | 873 | (substitute* "test/main.c" |
| 875 | (("NEOMUTT_TEST_ITEM\\(test_mutt_sig_exit_handler\\)") "") | 874 | (("NEOMUTT_TEST_ITEM\\(test_expando_filter\\)") "") |
| 876 | (("NEOMUTT_TEST_ITEM\\(test_mutt_path_tilde\\)") "")) | 875 | (("NEOMUTT_TEST_ITEM\\(test_mutt_sig_exit_handler\\)") "") |
| 877 | (with-directory-excursion "tests" | 876 | (("NEOMUTT_TEST_ITEM\\(test_mutt_path_tilde\\)") "")) |
| 878 | (setenv "NEOMUTT_TEST_DIR" (getcwd)) ; must be absolute | 877 | (with-directory-excursion "tests" |
| 879 | (invoke "bash" "setup.sh"))))))) | 878 | (setenv "NEOMUTT_TEST_DIR" (getcwd)) ; must be absolute |
| 879 | (invoke "bash" "setup.sh"))))))) | ||
| 880 | (home-page "https://neomutt.org/") | 880 | (home-page "https://neomutt.org/") |
| 881 | (synopsis "Command-line mail reader based on Mutt") | 881 | (synopsis "Command-line mail reader based on Mutt") |
| 882 | (description | 882 | (description |
