Created
October 17, 2017 07:12
-
-
Save dustinlacewell-wk/c199c7e02a281046e729acf189e63910 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
{ config, pkgs, lib, ... }: | |
with lib; | |
with pkgs; | |
let | |
cfg = config.programs.orgBuild; | |
env = { buildInputs = [ emacs ]; }; | |
script = '' | |
ln -s "${cfg.source}" ./init.org; | |
emacs -Q --script "${./assets/org-build.el}" -f make-init-el; | |
cp ./init.el $out; | |
''; | |
in { | |
options.programs.orgBuild = { | |
enable = mkEnableOption "Tangled Orgfile Configuration"; | |
source = mkOption { | |
type = types.path; | |
descripton = '' | |
The source orgfile to build as init.el | |
''; | |
}; | |
}; | |
config = mkIf cfg.enable { | |
home.file.".emacs.d/init.el".source = (runCommand "buildOrg" env script).outPath; | |
}; | |
} |
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
switch | |
error: while evaluating the attribute ‘text’ of the derivation ‘news-info.sh’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:98:11: | |
while evaluating the attribute ‘newsEntries’ at /Users/dustinlacewell/.config/nixpkgs/home-manager/modules/default.nix:104:3: | |
while evaluating the attribute ‘config.news.entries’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:87:25: | |
while evaluating ‘yieldConfig’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:74:29, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:73:16: | |
while evaluating the attribute ‘_module.check.value’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:312:9: | |
while evaluating the option `_module.check': | |
while evaluating the attribute ‘isDefined’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:344:5: | |
while evaluating ‘filterOverrides’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:419:21, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:328:18: | |
while evaluating ‘concatMap’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/lists.nix:102:18, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:425:8: | |
while evaluating ‘concatMap’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/lists.nix:102:18, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:323:17: | |
while evaluating ‘concatMap’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/lists.nix:102:18, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:208:19: | |
while evaluating ‘concatMap’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/lists.nix:102:18, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:192:8: | |
while evaluating anonymous function at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:192:19, called from undefined position: | |
while evaluating ‘pushDownProperties’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:366:24, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:192:75: | |
while evaluating ‘concatMap’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/lists.nix:102:18, called from /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:368:7: | |
while evaluating ‘pushDownProperties’ at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:366:24, called from undefined position: | |
while evaluating the attribute ‘config’ at /Users/dustinlacewell/.config/nixpkgs/library/emacs/org-build.nix:27:3: | |
while evaluating the module argument `pkgs' in "/Users/dustinlacewell/.config/nixpkgs/library/emacs/org-build.nix": | |
infinite recursion encountered, at /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/lib/modules.nix:163:28 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment