Skip to content

Commit 098eaa7

Browse files
committed
System agnostic emacs script
1 parent 4a982a3 commit 098eaa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flake.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
name = "org-export.el";
3434
text = ''
3535
(message "Exporting org to pdf...")
36-
(setenv "PATH" (concat (getenv "PATH") ":${(pkgsFor system).texlive.combined.scheme-full}/bin"))
3736
(require 'org)
3837
(find-file (getenv "NIX_ORG_EXPORT_FILE"))
3938
(copy-file (org-latex-export-to-pdf) (getenv "NIX_ORG_EXPORT_OUT") 't)
@@ -45,6 +44,9 @@
4544
(pkgsFor system).stdenv.mkDerivation {
4645
name = "exported.pdf";
4746
inherit src;
47+
buildInputs = [
48+
(pkgsFor system).texlive.combined.scheme-full
49+
];
4850
buildPhase = ''
4951
cp -r $src .
5052
stat ${file}

0 commit comments

Comments
 (0)