Skip to content

Instantly share code, notes, and snippets.

@grahamc
Forked from dustinlacewell-wk/some.nix
Last active October 15, 2017 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/1e83e4ff044b49e2980c2bc487696ac3 to your computer and use it in GitHub Desktop.
Save grahamc/1e83e4ff044b49e2980c2bc487696ac3 to your computer and use it in GitHub Desktop.
emacs = {
buildOrg = {emacs ? emacs25-nox, init ? ./init.org}:
runCommand "init.el"
{ buildInputs = [ emacs ]; }
''
mkdir -p $out;
ln -s "${init}" ./init.org;
emacs -Q --script "${./assets/org-build.el}" -f make-init-el;
cp init.el $out;
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment