Last active
October 15, 2017 23:33
-
-
Save dustinlacewell-wk/d41c214c73334053c0d742c91502396c 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
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