Drop support for lorri
Lorri does not cleanly integrate with my corporate device, which cannot run NixOS. To expose dependencies to Emacs buffers, I will use nix-buffer.el, which reads its values from dir-locals.nix. To easily expose dependencies from my existing shell.nix files into dir-locals.nix, I wrote a Nix utility function.
This commit is contained in:
parent
47a0b45f5f
commit
6b224a9e31
20 changed files with 43 additions and 52 deletions
|
|
@ -11,4 +11,10 @@
|
|||
wrapNonNixProgram = { path, as }: pkgs.writeShellScriptBin as ''
|
||||
exec ${path} "$@"
|
||||
'';
|
||||
|
||||
# Expose the buildInputs from a Nix shell to an Emacs buffer. Intended to be
|
||||
# called from dir-locals.nix files.
|
||||
nixBufferFromShell = path: let
|
||||
shell = import path;
|
||||
in pkgs.nixBufferBuilders.withPackages shell.buildInputs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue