Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Last active October 15, 2017 23:33
Show Gist options
  • Save dustinlacewell-wk/d41c214c73334053c0d742c91502396c to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/d41c214c73334053c0d742c91502396c to your computer and use it in GitHub Desktop.
emacs = {
buildOrg = {pkg ? emacs25-nox}:
let
buildEnv = { buildInputs = [pkg]; };
buildScript = ''
mkdir -p $out;
ln -s "${./init.org}" ./init.org;
emacs -Q --script "${./assets/org-build.el}" -f make-init-el;
cp init.el $out/init.el;
'';
buildResult = (runCommand "buildOrg" buildEnv buildScript);
in "${buildResult.outPath}/init.el";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment