From fa9ebf60da0a40026ddb17411bd6eb5198d8143c Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 5 Apr 2023 16:10:42 -0700 Subject: [PATCH] muchsync: set XAPIAN_CONFIG to fix cross compilation When cross compiling, muchsync needs to be given an explicit location for Xapian; this commit does that. Without it, cross compilation fails with: ``` > checking for xapian-config... no > configure: error: Cannot find xapian-config For full logs, run 'nix log /nix/store/gajxjvvi8mizb1zgahrnlcwpw2lapky7-muchsync-aarch64-unknown-linux-gnu-6.drv'. ``` --- pkgs/applications/networking/mailreaders/notmuch/muchsync.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/mailreaders/notmuch/muchsync.nix b/pkgs/applications/networking/mailreaders/notmuch/muchsync.nix index 81946353670c..0ba7d13eb421 100644 --- a/pkgs/applications/networking/mailreaders/notmuch/muchsync.nix +++ b/pkgs/applications/networking/mailreaders/notmuch/muchsync.nix @@ -13,6 +13,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ notmuch openssl sqlite xapian zlib ]; + XAPIAN_CONFIG = "${xapian}/bin/xapian-config"; meta = { description = "Synchronize maildirs and notmuch databases"; homepage = "http://www.muchsync.org/";