python/notmuch: Fix runtime dep on libnotmuch.

The Python library wants to use ctypes.CDLL() on libnotmuch, so we need
to patch in the correct store path of the shared object file.

Thanks to mog from the #nixos IRC for stumbling over this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2015-09-15 04:23:30 +02:00
parent c545bc80f6
commit 7fb1c7efcf
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -9178,6 +9178,11 @@ let
buildInputs = with self; [ python pkgs.notmuch ];
postPatch = ''
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
notmuch/globals.py
'';
meta = {
description = "A Python wrapper around notmuch";
homepage = http://notmuchmail.org/;