nixos/system/bookmarks/default.nix
2024-04-08 17:43:11 +01:00

11 lines
274 B
Nix

{
runCommand,
emacs,
}:
runCommand "bookmarks" {} ''
mkdir $out
cp ${./default.org} $out/bookmarks.org
cp ${./stylesheet.css} $out/stylesheet.css
${emacs}/bin/emacs -Q $out/bookmarks.org --batch --eval="(cd \"$out\")" -f pwd -f org-html-export-to-html --kill
''