Hi. As discussed on IRC, mostly to archive the issue here as well: 0.18 fails during make install if emacs is missing, due to a missing emacs/notmuch-version.el file (which is generated from a template, but not if you don't _have_ emacs).
Full build log below, please ignore the nix specific stuff and the failing patches for stuff below test/ - that's unrelated and a matter of updating the package recipe here. Regards/thanks, Ben these derivations will be built: /nix/store/6w194867p2acc9mb3qw960qczsgxhi1v-notmuch-0.18.drv /nix/store/abns3r6s2cc7gpvxr1738q4cjmplmynz-notmuch-0.18.tar.gz.drv /nix/store/p16bjgqbx4phk0x1ki77ykzrfs0n3zxn-mirrors-list.drv these paths will be fetched (5.14 MiB download, 26.94 MiB unpacked): /nix/store/2j5azq7sy3k3k8lhi7ca2kf5w9b68q7k-xapian-1.2.8 /nix/store/f03ggrgdj312203ah0468sy8fn5v6prx-gmime-2.6.19 /nix/store/nwjxnryf7wmd4z2lg4x0lp4i3bk528gi-gdb-7.7 /nix/store/qr467h4ns2rsvnkcppkd7vyzsr1m9p05-talloc-2.0.1 /nix/store/rp85105yvc3wijiimf19p95rb5vjfjh4-patchelf-0.8 /nix/store/rq16hrf7gy426a6lcnf6pa9746sxnbgc-stdenv fetching path `/nix/store/qr467h4ns2rsvnkcppkd7vyzsr1m9p05-talloc-2.0.1'... fetching path `/nix/store/nwjxnryf7wmd4z2lg4x0lp4i3bk528gi-gdb-7.7'... fetching path `/nix/store/2j5azq7sy3k3k8lhi7ca2kf5w9b68q7k-xapian-1.2.8'... fetching path `/nix/store/f03ggrgdj312203ah0468sy8fn5v6prx-gmime-2.6.19'... fetching path `/nix/store/rp85105yvc3wijiimf19p95rb5vjfjh4-patchelf-0.8'... *** Downloading ?http://cache.nixos.org/nar/1jwrha34jk4h32j4knxkwzp3hcrpga5wbx41s8pqgx93l039f4yw.nar.xz? to ?/nix/store/nwjxnryf7wmd4z2lg4x0lp4i3bk528gi-gdb-7.7?... *** Downloading ?http://cache.nixos.org/nar/0ax0w8n9x0fpw51rwklcz42nw8lj939qy8a0jiz7fgwp63pyb1i4.nar.xz? to ?/nix/store/rp85105yvc3wijiimf19p95rb5vjfjh4-patchelf-0.8?... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 *** Downloading ?http://cache.nixos.org/nar/085k4ixwg6a3lfh4g9sn5r9yl6yz19qdaaqp8indvzn6gz2hvflg.nar.xz? to ?/nix/store/qr467h4ns2rsvnkcppkd7vyzsr1m9p05-talloc-2.0.1?... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 *** Downloading ?http://cache.nixos.org/nar/0zrmqnfqin7kda7x64k8i895dhsdbn7hkxx8bixx840zz7g0fbzb.nar.xz? to ?/nix/store/f03ggrgdj312203ah0468sy8fn5v6prx-gmime-2.6.19?... *** Downloading ?http://cache.nixos.org/nar/03qyd5ig2z7i6m1cg1r9dg4jw9s00iizhdvpw5ls7sik5g91x8k2.nar.xz? to ?/nix/store/2j5azq7sy3k3k8lhi7ca2kf5w9b68q7k-xapian-1.2.8?... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 16860 100 16860 0 0 148k 0 --:--:-- --:--:-- --:--:-- 149k ^M100 42208 100 42208 0 0 287k 0 --:--:-- --:--:-- --:--:-- 290k fetching path `/nix/store/rq16hrf7gy426a6lcnf6pa9746sxnbgc-stdenv'... *** Downloading ?http://cache.nixos.org/nar/1kaf3yxlqqfj2v54583ay9wpqj8c591z5si2y6rndpd10dhhsnyf.nar.xz? to ?/nix/store/rq16hrf7gy426a6lcnf6pa9746sxnbgc-stdenv?... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 8032 100 8032 0 0 125k 0 --:--:-- --:--:-- --:--:-- 126k building path(s) `/nix/store/rnxx408jc9xpb5c77n5qxd0dys8m0lv4-mirrors-list' ^M 11 2117k 11 235k 0 0 833k 0 0:00:02 --:--:-- 0:00:02 833k^M 40 249k 40 99k 0 0 347k 0 --:--:-- --:--:-- --:--:-- 346k^M 11 2832k 11 311k 0 0 900k 0 0:00:03 --:--:-- 0:00:03 900kbuilding path(s) `/nix/store/cm538735an336lz0xi57lzxx88r800y0-notmuch-0.18.tar.gz' ^M100 249k 100 249k 0 0 554k 0 --:--:-- --:--:-- --:--:-- 553k ESC[ptrying http://notmuchmail.org/releases/notmuch-0.18.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 2117k 100 2117k 0 0 1896k 0 0:00:01 0:00:01 --:--:-- 1898k ^M100 2832k 100 2832k 0 0 2154k 0 0:00:01 0:00:01 --:--:-- 2155k ^M 4 618k 4 27909 0 0 33714 0 0:00:18 --:--:-- 0:00:18 33706^M 39 618k 39 244k 0 0 139k 0 0:00:04 0:00:01 0:00:03 139k^M100 618k 100 618k 0 0 266k 0 0:00:02 0:00:02 --:--:-- 266k ESC[qESC[qbuilding path(s) `/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18' ESC[pbuilding /nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18 ESC[punpacking sources ESC[3punpacking source archive /nix/store/cm538735an336lz0xi57lzxx88r800y0-notmuch-0.18.tar.gz ESC[qsource root is notmuch-0.18 ESC[qESC[ppatching sources cat: argument-parsing: No such file or directory cat: atomicity: No such file or directory cat: author-order: No such file or directory cat: basic: No such file or directory cat: crypto: No such file or directory cat: count: No such file or directory cat: dump-restore: No such file or directory cat: emacs: No such file or directory cat: emacs-large-search-buffer: No such file or directory cat: encoding: No such file or directory cat: from-guessing: No such file or directory cat: help-test: No such file or directory cat: hooks: No such file or directory cat: json: No such file or directory cat: long-id: No such file or directory cat: maildir-sync: No such file or directory cat: multipart: No such file or directory cat: new: No such file or directory cat: python: No such file or directory cat: raw: No such file or directory cat: reply: No such file or directory cat: search: No such file or directory cat: search-by-folder: No such file or directory cat: search-insufficient-from-quoting: No such file or directory cat: search-folder-coherence: No such file or directory cat: search-limiting: No such file or directory cat: search-output: No such file or directory cat: search-position-overlap-bug: No such file or directory cat: symbol-hiding: No such file or directory cat: tagging: No such file or directory cat: thread-naming: No such file or directory cat: thread-order: No such file or directory cat: uuencode: No such file or directory ESC[qESC[pconfiguring configure flags: --disable-dependency-tracking --prefix=/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18 Welcome to Notmuch, a system for indexing, searching and tagging your email. We hope that the process of building and installing notmuch is quick and smooth so that you can soon be reading and processing your email more efficiently than ever. If anything goes wrong in the configure process, you can override any decisions it makes by manually editing the Makefile.config file that it creates. Also please do as much as you can to figure out what could be different on your machine compared to those of the notmuch developers. Then, please email those details to the Notmuch list (notmuch at notmuchmail.org) so that we can hopefully make future versions of notmuch easier for you to use. We'll now investigate your system to verify that all required dependencies are available: Checking for Xapian development files... Yes (1.2.8). Checking for Xapian compaction support... Yes. Checking for GMime development files... Yes (gmime-2.6 >= 2.6.7). Checking for Glib development files (>= 2.22)... Yes. Checking for zlib (>= 1.2.5.2)... Yes. Checking for talloc development files... Yes. Checking for valgrind development files... No (but that's fine). Checking for bash-completion (>= 1.90)... No (will not install bash completion). Checking if emacs is available... No (so will not byte-compile emacs code) Checking if sphinx is available and supports nroff output... No (falling back to rst2man). Checking if rst2man is available... No (so will not install man pages). Checking which platform we are on... Linux Checking for /nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/lib in ldconfig... No (will set RPATH) Checking byte order... 1234 Checking for canonicalize_file_name... Yes. Checking for getline... Yes. Checking for strcasestr... Yes. Checking for strsep... Yes. Checking for timegm... Yes. Checking for dirent.d_type... Yes. Checking for standard version of getpwuid_r... Yes. Checking for standard version of asctime_r... Yes. Checking for rpath support... Yes. Checking for -Wl,--as-needed... Yes. Checking for available C++ compiler warning flags... -Wall -Wextra -Wwrite-strings Checking for available C compiler warning flags... -Wall -Wextra -Wwrite-strings -Wmissing-declarations All required packages were found. You may now run the following commands to compile and install notmuch: make sudo make install ESC[qESC[pbuilding make flags: SHELL=/nix/store/p0vd3ydvxplbpjffkpblwj5dahcmp9ri-bash-4.2-p45/bin/bash ESC[pbuilding doc/docdeps.mk ESC[3sESC[apython ./doc/mkdocdeps.py ./doc doc/_build doc/docdeps.mkESC[b ESC[qESC[pbuilding command-line-arguments.o Use "make V=1" to see the verbose compile lines. CC -O2 command-line-arguments.o ESC[qESC[pbuilding debugger.o CC -O2 debugger.o ESC[qESC[pbuilding gmime-filter-reply.o CC -O2 gmime-filter-reply.o ESC[qESC[pbuilding hooks.o CC -O2 hooks.o ESC[qESC[pbuilding version.stamp ESC[3sESC[aecho 0.18 > version.stampESC[b ESC[qESC[pbuilding notmuch.o CC -O2 notmuch.o ESC[qESC[pbuilding notmuch-compact.o CC -O2 notmuch-compact.o ESC[qESC[pbuilding notmuch-config.o CC -O2 notmuch-config.o ESC[qESC[pbuilding notmuch-count.o CC -O2 notmuch-count.o ESC[qESC[pbuilding notmuch-dump.o CC -O2 notmuch-dump.o ESC[qESC[pbuilding notmuch-insert.o CC -O2 notmuch-insert.o ESC[qESC[pbuilding notmuch-new.o CC -O2 notmuch-new.o ESC[qESC[pbuilding notmuch-reply.o CC -O2 notmuch-reply.o ESC[qESC[pbuilding notmuch-restore.o CC -O2 notmuch-restore.o ESC[qESC[pbuilding notmuch-search.o CC -O2 notmuch-search.o ESC[qESC[pbuilding notmuch-setup.o CC -O2 notmuch-setup.o ESC[qESC[pbuilding notmuch-show.o CC -O2 notmuch-show.o ESC[qESC[pbuilding notmuch-tag.o CC -O2 notmuch-tag.o ESC[qESC[pbuilding notmuch-time.o CC -O2 notmuch-time.o ESC[qESC[pbuilding sprinter-json.o CC -O2 sprinter-json.o ESC[qESC[pbuilding sprinter-sexp.o CC -O2 sprinter-sexp.o ESC[qESC[pbuilding sprinter-text.o CC -O2 sprinter-text.o ESC[qESC[pbuilding query-string.o CC -O2 query-string.o ESC[qESC[pbuilding mime-node.o CC -O2 mime-node.o ESC[qESC[pbuilding crypto.o CC -O2 crypto.o ESC[qESC[pbuilding tag-util.o CC -O2 tag-util.o ESC[qESC[pbuilding compat/timegm.o CC -O2 compat/timegm.o ESC[qESC[pbuilding lib/filenames.o CC -O2 lib/filenames.o ESC[qESC[pbuilding lib/string-list.o CC -O2 lib/string-list.o ESC[qESC[pbuilding lib/libsha1.o CC -O2 lib/libsha1.o ESC[qESC[pbuilding lib/message-file.o CC -O2 lib/message-file.o ESC[qESC[pbuilding lib/messages.o CC -O2 lib/messages.o ESC[qESC[pbuilding lib/sha1.o CC -O2 lib/sha1.o ESC[qESC[pbuilding lib/tags.o CC -O2 lib/tags.o ESC[qESC[pbuilding lib/database.o CXX -O2 lib/database.o ESC[qESC[pbuilding lib/parse-time-vrp.o CXX -O2 lib/parse-time-vrp.o ESC[qESC[pbuilding lib/directory.o CXX -O2 lib/directory.o ESC[qESC[pbuilding lib/index.o CXX -O2 lib/index.o ESC[qESC[pbuilding lib/message.o CXX -O2 lib/message.o ESC[qESC[pbuilding lib/query.o CXX -O2 lib/query.o ESC[qESC[pbuilding lib/thread.o CXX -O2 lib/thread.o ESC[qESC[pbuilding lib/libnotmuch.a AR lib/libnotmuch.a ESC[qESC[pbuilding util/xutil.o CC -O2 util/xutil.o ESC[qESC[pbuilding util/error_util.o CC -O2 util/error_util.o ESC[qESC[pbuilding util/hex-escape.o CC -O2 util/hex-escape.o ESC[qESC[pbuilding util/string-util.o CC -O2 util/string-util.o ESC[qESC[pbuilding util/talloc-extra.o CC -O2 util/talloc-extra.o ESC[qESC[pbuilding util/zlib-extra.o CC -O2 util/zlib-extra.o ESC[qESC[pbuilding util/util.o CC -O2 util/util.o ESC[qESC[pbuilding util/libutil.a AR util/libutil.a ESC[qESC[pbuilding parse-time-string/parse-time-string.o CC -O2 parse-time-string/parse-time-string.o ESC[qESC[pbuilding parse-time-string/libparse-time-string.a AR parse-time-string/libparse-time-string.a ESC[qESC[pbuilding notmuch CXX -O2 notmuch ESC[qESC[pbuilding notmuch.sym ESC[3sESC[ash ./lib/gen-version-script.sh lib/notmuch.h compat/timegm.o lib/filenames.o lib/string-list.o lib/libsha1.o lib/message-file.o lib/messages.o lib/sha1.o lib/tags.o lib/database.o lib/parse-time-vrp.o lib/directory.o lib/index.o lib/message.o lib/query.o lib/thread.o > notmuch.symESC[b ESC[qESC[pbuilding lib/libnotmuch.so.3.1.0 CXX -O2 lib/libnotmuch.so.3.1.0 ESC[qESC[pbuilding lib/libnotmuch.so.3 ESC[3sESC[aln -sf libnotmuch.so.3.1.0 lib/libnotmuch.so.3ESC[b ESC[qESC[pbuilding lib/libnotmuch.so ESC[3sESC[aln -sf libnotmuch.so.3.1.0 lib/libnotmuch.soESC[b ESC[qESC[pbuilding notmuch-shared CC -O2 notmuch-shared ESC[qESC[pbuilding all make[1]: Nothing to be done for `all'. Compilation of notmuch is now complete. You can install notmuch with: make install Note that depending on the prefix to which you are installing you may need root permission (such as "sudo make install"). See "./configure --help" for help on setting an alternate prefix. ESC[qESC[qESC[pinstalling install flags: install SHELL=/nix/store/p0vd3ydvxplbpjffkpblwj5dahcmp9ri-bash-4.2-p45/bin/bash gsettingsschemadir=/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/share/gsettings-schemas/notmuch-0.18/glib-2.0/schemas/ ESC[pbuilding install-man No sphinx or rst2man, will not install man pages. ESC[qESC[pbuilding install-lib ESC[3sESC[amkdir -p "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/lib/"ESC[b ESC[3sESC[ainstall -m0644 "lib/libnotmuch.so.3.1.0" "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/lib/"ESC[b ESC[3sESC[aln -sf libnotmuch.so.3.1.0 "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/lib/libnotmuch.so.3"ESC[b ESC[3sESC[aln -sf libnotmuch.so.3.1.0 "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/lib/libnotmuch.so"ESC[b ESC[3sESC[amkdir -p "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/include"ESC[b ESC[3sESC[ainstall -m0644 "./lib/notmuch.h" "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/include/" ESC[b ESC[qESC[pbuilding install-completion install-completion ESC[3sESC[amkdir -p "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/share/zsh/functions/Completion/Unix"ESC[b ESC[3sESC[ainstall -m0644 ./completion/notmuch-completion.zsh "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/share/zsh/functions/Completion/Unix/_notmuch"ESC[b ESC[qESC[pbuilding install-emacs ESC[3sESC[amkdir -p "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/share/emacs/site-lisp"ESC[b ESC[3sESC[ainstall -m0644 emacs/notmuch-lib.el emacs/notmuch-parser.el emacs/notmuch.el emacs/notmuch-query.el emacs/notmuch-show.el emacs/notmuch-tree.el emacs/notmuch-wash.el emacs/notmuch-hello.el emacs/notmuch-mua.el emacs/notmuch-address.el emacs/notmuch-maildir-fcc.el emacs/notmuch-message.el emacs/notmuch-crypto.el emacs/notmuch-tag.el emacs/coolj.el emacs/notmuch-print.el emacs/notmuch-version.el "/nix/store/xgnrlwzr90msy3c65jv5n293yvfsiyrb-notmuch-0.18/share/emacs/site-lisp"ESC[b install: cannot stat 'emacs/notmuch-version.el': No such file or directory make: *** [install-emacs] Error 1 ESC[qESC[qESC[qbuilder for `/nix/store/6w194867p2acc9mb3qw960qczsgxhi1v-notmuch-0.18.drv' failed with exit code 2 error: build of `/nix/store/6w194867p2acc9mb3qw960qczsgxhi1v-notmuch-0.18.drv' failed