Include NIX_PATH settings in nix/rebuild-emacs function
I'm currently setting NIX_PATH in ~/briefcase/shell.nix. This means when I call `nix/rebuild-emacs` from a buffer that is inside the briefcase directory, the command succeeds because NIX_PATH is properly defined. When I call `nix/rebuild-emacs` from any other location it fails. I'm hard-coding the NIX_PATH in this command so that I can call `nix/rebuild-emacs` from any buffer that is currently active.
This commit is contained in:
parent
96ff26e5ca
commit
28af585f3d
1 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,6 @@
|
||||||
;; Library
|
;; Library
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
;;; Code:
|
|
||||||
(use-package nix-mode
|
(use-package nix-mode
|
||||||
:mode "\\.nix\\'")
|
:mode "\\.nix\\'")
|
||||||
|
|
||||||
|
@ -26,7 +25,11 @@
|
||||||
"Use nix-env to rebuild wpcarros-emacs."
|
"Use nix-env to rebuild wpcarros-emacs."
|
||||||
(interactive)
|
(interactive)
|
||||||
(start-process "nix-build/<briefcase/emacs>" "*nix-build/<briefcase/emacs>*"
|
(start-process "nix-build/<briefcase/emacs>" "*nix-build/<briefcase/emacs>*"
|
||||||
"nix-env" "-f" "<briefcase>" "-iA" "emacs")
|
"nix-env"
|
||||||
|
"-I" (format "nixpkgs=%s" (f-expand "~/nixpkgs"))
|
||||||
|
"-I" (format "depot=%s" (f-expand "~/depot"))
|
||||||
|
"-I" (format "briefcase=%s" (f-expand "~/briefcase"))
|
||||||
|
"-f" "<briefcase>" "-iA" "emacs")
|
||||||
(display-buffer "*nix-build/<briefcase/emacs>*"))
|
(display-buffer "*nix-build/<briefcase/emacs>*"))
|
||||||
|
|
||||||
(defun nix/home-manager-switch ()
|
(defun nix/home-manager-switch ()
|
||||||
|
|
Loading…
Reference in a new issue