summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@gnu.org>2018-08-24 14:26:12 -0400
committerAmin Bandali <amin@gnu.org>2018-08-24 14:26:12 -0400
commit0f3d4eb551c2fb3b69f3f3ecbdfda33c12d4e5e8 (patch)
treeb4e5bbfaf20448b4ed4ec31dd98cf52e1d866ba7
parent45f538b6f685a6dc2438cf64916494786c885f6e (diff)
downloadconfigs-0f3d4eb551c2fb3b69f3f3ecbdfda33c12d4e5e8.tar.gz
configs-0f3d4eb551c2fb3b69f3f3ecbdfda33c12d4e5e8.tar.xz
configs-0f3d4eb551c2fb3b69f3f3ecbdfda33c12d4e5e8.zip
[emacs] add borg-nix-shell and use it to build notmuch's build deps
- currently only works in regular emacs session and not via terminal: https://github.com/emacscollective/borg/issues/78 - TODO: add support for guix environment
-rw-r--r--.gitmodules4
-rw-r--r--init.org3
m---------lib/borg-nix-shell0
3 files changed, 7 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 6f90e8d..e5a4bb5 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -16,6 +16,9 @@
[submodule "borg"]
path = lib/borg
url = git@github.com:emacscollective/borg.git
+[submodule "borg-nix-shell"]
+ path = lib/borg-nix-shell
+ url = git@github.com:thblt/borg-nix-shell.git
[submodule "closql"]
path = lib/closql
url = git@github.com:emacscollective/closql.git
@@ -130,6 +133,7 @@
url = https://git.notmuchmail.org/git/notmuch
load-path = emacs
info-path = doc/_build/texinfo
+ build-nix-shell-packages = pkgconfig gitMinimal xapian gmime talloc zlib pythonPackages.sphinx pythonPackages.python texinfo
build-step = ./configure
build-step = make
build-step = make sphinx-texinfo
diff --git a/init.org b/init.org
index e1a6686..51cd9ca 100644
--- a/init.org
+++ b/init.org
@@ -234,6 +234,9 @@ can then be managed with the help of Magit or other tools.
(require 'borg)
(borg-initialize)
+(require 'borg-nix-shell)
+(setq borg-build-shell-command 'borg-nix-shell-build-command)
+
(with-eval-after-load 'bind-key
(bind-keys
:package borg
diff --git a/lib/borg-nix-shell b/lib/borg-nix-shell
new file mode 160000
+Subproject 84dac9e821ea445a6b4542d021d3094b0c1e55d