Merge pull request #4570 from pmahoney/notmuch-darwin
Notmuch: fix build on darwin
This commit is contained in:
commit
17f3ca48a0
@ -1,4 +1,5 @@
|
|||||||
{ fetchurl, stdenv, bash, emacs, gdb, glib, gmime, gnupg,
|
{ fetchurl, stdenv, bash, emacs, fixDarwinDylibNames,
|
||||||
|
gdb, glib, gmime, gnupg,
|
||||||
pkgconfig, talloc, xapian
|
pkgconfig, talloc, xapian
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -10,51 +11,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1pdp9l7yv71d3fjb30qyccva8h03hvg88q4a00yi50v2j70kvmgj";
|
sha256 = "1pdp9l7yv71d3fjb30qyccva8h03hvg88q4a00yi50v2j70kvmgj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ bash emacs gdb glib gmime gnupg pkgconfig talloc xapian ];
|
buildInputs = [ bash emacs gdb glib gmime gnupg pkgconfig talloc xapian ]
|
||||||
|
++ stdenv.lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
(cd test && for prg in \
|
find test -type f -exec \
|
||||||
aggregate-results.sh \
|
sed -i \
|
||||||
argument-parsing \
|
"1s_#!/usr/bin/env bash_#!${bash}/bin/bash_" \
|
||||||
atomicity \
|
"{}" ";"
|
||||||
author-order \
|
|
||||||
basic \
|
|
||||||
crypto \
|
|
||||||
count \
|
|
||||||
dump-restore \
|
|
||||||
emacs \
|
|
||||||
emacs-large-search-buffer \
|
|
||||||
encoding \
|
|
||||||
from-guessing \
|
|
||||||
help-test \
|
|
||||||
hooks \
|
|
||||||
json \
|
|
||||||
long-id \
|
|
||||||
maildir-sync \
|
|
||||||
multipart \
|
|
||||||
new \
|
|
||||||
notmuch-test \
|
|
||||||
python \
|
|
||||||
raw \
|
|
||||||
reply \
|
|
||||||
search \
|
|
||||||
search-by-folder \
|
|
||||||
search-insufficient-from-quoting \
|
|
||||||
search-folder-coherence \
|
|
||||||
search-limiting \
|
|
||||||
search-output \
|
|
||||||
search-position-overlap-bug \
|
|
||||||
symbol-hiding \
|
|
||||||
tagging \
|
|
||||||
test-lib.sh \
|
|
||||||
test-verbose \
|
|
||||||
thread-naming \
|
|
||||||
thread-order \
|
|
||||||
uuencode \
|
|
||||||
;do
|
|
||||||
substituteInPlace "$prg" \
|
|
||||||
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
||||||
done)
|
|
||||||
|
|
||||||
for src in \
|
for src in \
|
||||||
crypto.c \
|
crypto.c \
|
||||||
@ -65,6 +29,16 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preFixup = if stdenv.isDarwin then
|
||||||
|
''
|
||||||
|
prg="$out/bin/notmuch"
|
||||||
|
target="libnotmuch.3.dylib"
|
||||||
|
echo "$prg: fixing link to $target"
|
||||||
|
install_name_tool -change "$target" "$out/lib/$target" "$prg"
|
||||||
|
''
|
||||||
|
else
|
||||||
|
"";
|
||||||
|
|
||||||
# XXX: emacs tests broken
|
# XXX: emacs tests broken
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user