Skip to content

Commit

Permalink
System agnostic emacs script
Browse files Browse the repository at this point in the history
  • Loading branch information
t4ccer committed Nov 4, 2022
1 parent 4a982a3 commit 098eaa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
name = "org-export.el";
text = ''
(message "Exporting org to pdf...")
(setenv "PATH" (concat (getenv "PATH") ":${(pkgsFor system).texlive.combined.scheme-full}/bin"))
(require 'org)
(find-file (getenv "NIX_ORG_EXPORT_FILE"))
(copy-file (org-latex-export-to-pdf) (getenv "NIX_ORG_EXPORT_OUT") 't)
Expand All @@ -45,6 +44,9 @@
(pkgsFor system).stdenv.mkDerivation {
name = "exported.pdf";
inherit src;
buildInputs = [
(pkgsFor system).texlive.combined.scheme-full
];
buildPhase = ''
cp -r $src .
stat ${file}
Expand Down

0 comments on commit 098eaa7

Please sign in to comment.