Last active
October 14, 2018 20:14
-
-
Save mpickering/0971d372954137c4578ae9c06d31414c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
np = import <nixpkgs> {}; | |
myEmacsConfig = np.writeText "default.el" '' | |
;; initialize package | |
(require 'package) | |
(package-initialize 'noactivate) | |
;; load some packages | |
(require 'cedille-mode) | |
''; | |
myEmacs = np.emacsWithPackages (epkgs: (with epkgs; [ | |
(np.runCommand "default.el" {} '' | |
mkdir -p $out/share/emacs/site-lisp | |
cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el | |
'') | |
np.emacsPackages.cedille | |
melpaStablePackages.use-package | |
])); | |
in | |
np.mkShell { buildInputs = [ myEmacs ];} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment