diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-09-15 04:23:30 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-09-15 04:25:41 +0200 |
commit | 7fb1c7efcfa34a4af9f5de5fbde9e12d15017a90 (patch) | |
tree | 0eb7acaab6ca484ad52c780813977b3c0ca8b9f1 /pkgs | |
parent | c545bc80f68a44d0d0e1cc85290d74d1d57c09fa (diff) |
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>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fe5e1743e45ca..af8a3736c538c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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/; |