forked from mirrors/nixpkgs
notmuch: switch to gmime3, make all tests pass with gmime3
This commit is contained in:
parent
04e97f9868
commit
ae86fddd95
|
@ -1,4 +1,4 @@
|
|||
{ fetchurl, stdenv, fixDarwinDylibNames, gdb
|
||||
{ fetchurl, stdenv, fixDarwinDylibNames
|
||||
, pkgconfig, gnupg
|
||||
, xapian, gmime, talloc, zlib
|
||||
, doxygen, perl
|
||||
|
@ -6,9 +6,11 @@
|
|||
, bash-completion
|
||||
, emacs
|
||||
, ruby
|
||||
, which, dtach, openssl, bash
|
||||
, which, dtach, openssl, bash, gdb, man
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.25";
|
||||
name = "notmuch-${version}";
|
||||
|
@ -32,19 +34,11 @@ stdenv.mkDerivation rec {
|
|||
emacs # (optional) to byte compile emacs code
|
||||
ruby # (optional) ruby bindings
|
||||
which dtach openssl bash # test dependencies
|
||||
]
|
||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) gdb;
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
checkTarget = "test";
|
||||
|
||||
patchPhase = ''
|
||||
# XXX: disabling few tests since i have no idea how to make them pass for now
|
||||
rm -f test/T010-help-test.sh \
|
||||
test/T350-crypto.sh \
|
||||
test/T355-smime.sh
|
||||
]
|
||||
++ optional stdenv.isDarwin fixDarwinDylibNames
|
||||
++ optionals (!stdenv.isDarwin) [ gdb man ]; # test dependencies
|
||||
|
||||
postPatch = ''
|
||||
find test -type f -exec \
|
||||
sed -i \
|
||||
-e "1s|#!/usr/bin/env bash|#!${bash}/bin/bash|" \
|
||||
|
@ -65,7 +59,9 @@ stdenv.mkDerivation rec {
|
|||
done
|
||||
'';
|
||||
|
||||
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
makeFlags = "V=1";
|
||||
|
||||
preFixup = optionalString stdenv.isDarwin ''
|
||||
set -e
|
||||
|
||||
die() {
|
||||
|
@ -92,12 +88,16 @@ stdenv.mkDerivation rec {
|
|||
install_name_tool -change "$badname" "$goodname" "$prg"
|
||||
'';
|
||||
|
||||
doCheck = !stdenv.isDarwin && (versionAtLeast gmime.version "3.0");
|
||||
checkTarget = "test V=1";
|
||||
|
||||
postInstall = ''
|
||||
make install-man
|
||||
'';
|
||||
|
||||
dontGzipMan = true; # already compressed
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = {
|
||||
description = "Mail indexer";
|
||||
homepage = https://notmuchmail.org/;
|
||||
license = licenses.gpl3;
|
||||
|
|
|
@ -15580,7 +15580,9 @@ with pkgs;
|
|||
|
||||
notepadqq = libsForQt56.callPackage ../applications/editors/notepadqq { };
|
||||
|
||||
notmuch = callPackage ../applications/networking/mailreaders/notmuch { };
|
||||
notmuch = callPackage ../applications/networking/mailreaders/notmuch {
|
||||
gmime = gmime3;
|
||||
};
|
||||
|
||||
notmuch-mutt = callPackage ../applications/networking/mailreaders/notmuch/mutt.nix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue