1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/notmuch/default.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, bash, emacs, fixDarwinDylibNames,
gdb, glib, gmime, gnupg,
pkgconfig, talloc, xapian
}:
stdenv.mkDerivation rec {
2014-10-25 19:41:39 +01:00
name = "notmuch-0.18.2";
src = fetchurl {
url = "http://notmuchmail.org/releases/${name}.tar.gz";
2014-10-25 19:41:39 +01:00
sha256 = "175wzrw1mfpl4h72n9ims66zn5l34zn2dn857vraj2i5w7z7p7z9";
};
buildInputs = [ bash emacs gdb glib gmime gnupg pkgconfig talloc xapian ]
++ stdenv.lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
patchPhase = ''
find test -type f -exec \
sed -i \
"1s_#!/usr/bin/env bash_#!${bash}/bin/bash_" \
"{}" ";"
for src in \
crypto.c \
emacs/notmuch-crypto.el
do
substituteInPlace "$src" \
--replace \"gpg\" \"${gnupg}/bin/gpg2\"
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
doCheck = false;
checkTarget = "test";
meta = {
description = "Mail indexer";
license = stdenv.lib.licenses.gpl3;
2013-02-19 03:46:47 +00:00
maintainers = with stdenv.lib.maintainers; [ chaoflow garbas ];
platforms = stdenv.lib.platforms.gnu;
};
}