From: Amin Bandali Date: Fri, 24 Aug 2018 18:26:12 +0000 (-0400) Subject: [emacs] add borg-nix-shell and use it to build notmuch's build deps X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/0f3d4eb551c2fb3b69f3f3ecbdfda33c12d4e5e8?ds=sidebyside [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 --- 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 index 0000000..84dac9e --- /dev/null +++ b/lib/borg-nix-shell @@ -0,0 +1 @@ +Subproject commit 84dac9e821ea445a6b4542d021d3094b0c1e55d3