TL;DR: - prefer WPCARRO env-var to BRIEFCASE - remove repository URLs from Emacs libraries - prefer tvl-depot-path where possible - reduce the scope of constants.el - prune (some not all) stale CI configuration Change-Id: I21e9130402502ec6fa2fc4b46753c890069be62d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4545 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			EmacsLisp
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			EmacsLisp
		
	
	
	
	
	
;;; wpc-nix.el --- Nix support -*- lexical-binding: t -*-
 | 
						|
 | 
						|
;; Author: William Carroll <wpcarro@gmail.com>
 | 
						|
;; Version: 0.0.1
 | 
						|
;; Package-Requires: ((emacs "25.1"))
 | 
						|
 | 
						|
;;; Commentary:
 | 
						|
;; Configuration to support working with Nix.
 | 
						|
 | 
						|
;;; Code:
 | 
						|
 | 
						|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
						|
;; Dependencies
 | 
						|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
						|
 | 
						|
(require 'tvl)
 | 
						|
 | 
						|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
						|
;; Library
 | 
						|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
						|
 | 
						|
(use-package nix-mode
 | 
						|
  :mode "\\.nix\\'")
 | 
						|
 | 
						|
(defun wpc-nix-rebuild-emacs ()
 | 
						|
  "Use nix-env to rebuild wpcarros-emacs."
 | 
						|
  (interactive)
 | 
						|
  (let* ((pname (format "nix-env -iA users.wpcarro.emacs.nixos"))
 | 
						|
         (bname (format "*%s*" pname)))
 | 
						|
    (start-process pname bname
 | 
						|
                   "nix-env"
 | 
						|
                   "-f" tvl-depot-path
 | 
						|
                   "-iA" "users.wpcarro.emacs.nixos")
 | 
						|
    (display-buffer bname)))
 | 
						|
 | 
						|
(provide 'wpc-nix)
 | 
						|
;;; wpc-nix.el ends here
 |