Created
November 19, 2018 09:25
-
-
Save puffnfresh/52c44713930bcd2b9cd9df59441c6ec8 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
#!/usr/bin/env nix-shell | |
#! nix-shell -i "emacs --batch -l $HOME/.emacs.d/core/core-load-paths.el -l" -p emacs26-nox | |
(require 'core-configuration-layer) | |
(configuration-layer/discover-layers) | |
(configuration-layer/make-all-packages nil) | |
(princ "p:\n") | |
(princ "let checked = n:\n") | |
(princ " let p' = p.${n} or null;\n") | |
(princ " in if p'.meta.broken or false then null else p';\n") | |
(princ "in\n") | |
(princ "[\n") | |
(dolist (package (configuration-layer/get-packages-list)) | |
(princ (concat " (checked " (prin1-to-string (symbol-name package)) ")\n"))) | |
(princ "]\n") |
This seems to be also fixed here: https://github.com/puffnfresh/nix-files/tree/master/spacemacs
@puffnfresh could you license your spacemacs2nix.el scripts under MIT? I want to use them in my config.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to change the nix shebang to the following when working on the develop branch:
core-versions.el
is required.