Skip to content

Instantly share code, notes, and snippets.

@mpickering
Last active October 14, 2018 20:14
Show Gist options
  • Save mpickering/0971d372954137c4578ae9c06d31414c to your computer and use it in GitHub Desktop.
Save mpickering/0971d372954137c4578ae9c06d31414c to your computer and use it in GitHub Desktop.
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