24 Aug 2024 |
Artur Manuel | 'tevs, its not too much a bother anyway (hoping) | 03:51:56 |
Artur Manuel | magic() { files=$(find -f ./ | tr "\n" " "); for i in "$files"; do echo $i; echo 'Running grep "pdflatex" $i'; grep "pdflatex" $i; if [ $? -gt 0 ]; then echo "didnt find anything here"; else echo "got one! it was $i"; fi; done; } wack function i made that made the process a ton simpler | 04:16:43 |
Artur Manuel | magic() { files=$(find -f ./ | tr "\n" " "); for i in "$files"; do echo $i; echo 'Running \ grep "pdflatex" $i\'; grep "pdflatex" $i; if [ $? -gt 0 ]; then echo "didnt find anything here"; else echo "got one! it was $i"; fi; done; } wack function i made that made the process a ton simpler | 04:16:57 |
Artur Manuel | magic() { files=$(find -f ./ | tr "\n" " "); for i in "$files"; do echo $i; echo 'Running 'grep "pdflatex" $i"'; grep "pdflatex" $i; if [ $? -gt 0 ]; then echo "didnt find anything here"; else echo "got one! it was $i"; fi; done; } wack function i made that made the process a ton simpler | 04:17:22 |
Artur Manuel | alright, it compiled like a charm but it still didn't find pdflatex | 04:49:47 |
Artur Manuel | postPatch = lib.strings.concatStrings [
old.postPatch
''
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'pdflatex' '${texliveTeTeX}/bin/pdflatex'
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'xelatex' '${texliveTeTeX}/bin/xelatex'
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'lualatex' '${texliveTeTeX}/bin/lualatex'
''
];
| 04:50:08 |
adisbladis | In reply to @asmundesen:matrix.org
postPatch = lib.strings.concatStrings [
old.postPatch
''
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'pdflatex' '${texliveTeTeX}/bin/pdflatex'
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'xelatex' '${texliveTeTeX}/bin/xelatex'
substituteInPlace 'lisp/org/ox-latex.el' \
--replace 'lualatex' '${texliveTeTeX}/bin/lualatex'
''
];
Use --replace-fail , and verify that paths are actually correct once built | 04:56:59 |
adisbladis | Also, I wouldn't use concatStrings | 04:58:25 |
adisbladis | Use the + operator | 04:58:29 |
adisbladis | concatStrings is for when you have dynamic lists, when it's all static like this it doesn't make sense | 04:59:04 |
adisbladis | Not to the point that I'd block a review on it, just some general advice | 05:00:23 |
Artur Manuel | yknow thats fair, im always a bit of a skeptic of how you can concatenate, i know that its ++ for lists but i had no idea if it was ++ or + so i just went with the more first glance readable option | 05:01:23 |
Artur Manuel | ill note that | 05:01:41 |
adisbladis | In reply to @asmundesen:matrix.org yknow thats fair, im always a bit of a skeptic of how you can concatenate, i know that its ++ for lists but i had no idea if it was ++ or + so i just went with the more first glance readable option ++ for lists
+ for numbers and strings | 05:01:44 |
adisbladis | https://github.com/tazjin/nix-1p | 05:01:56 |
adisbladis | https://github.com/tazjin/nix-1p | 05:02:15 |
adisbladis | * https://github.com/tazjin/nix-1p?tab=readme-ov-file#operators | 05:02:32 |
Artur Manuel | ill <C-d> when i need a refresher | 05:03:29 |
Artur Manuel | cheers | 05:03:30 |
| @adbjesus:matrix.org left the room. | 15:53:45 |
| Javier Pacheco joined the room. | 19:40:54 |
Javier Pacheco | hi guys, do you know how can I use overlays but keep emacs version 30? | 19:41:41 |
Javier Pacheco | hi | 19:42:00 |
adisbladis | 30 isn't released yet | 23:55:19 |
25 Aug 2024 |
Artur Manuel | ok ive tried a bunch of different ways of patching emacs to support the pdflatex binary from nixpkgs and none of them had worked... | 00:19:15 |
Artur Manuel | In reply to@asmundesen:matrix.org ok ive tried a bunch of different ways of patching emacs to support the pdflatex binary from nixpkgs and none of them had worked... https://pb.atl.tools/?b45e6b847f0c3923#AHhEcCtXaUxSeywL2CiGbxXCH2Get1QbXeA6v2PZtDjD it does patch it too is the weird bit | 00:23:50 |
Artur Manuel | guess im trying the wrapProgram test | 00:24:28 |
Artur Manuel | * guess im trying the wrapProgram solution | 00:26:27 |
| Lambda Coder joined the room. | 00:34:06 |
Lambda Coder | New nixos user, longtime emacs user. I want to add an emacs package called jinx to my configuration.nix file. I currently have a working block as shown in the quickstart section on the emacs-overlay main github page. Can someone point to or show how I'd add emacs packages? Thanks. | 00:40:27 |