!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

359 Members
Discussion about documentation improvements around the Nix ecosystem85 Servers

Load older messages


SenderMessageTime
15 Feb 2022
@toonn:matrix.orgtoonn I think the nix-shell should suffice but I can't figure out the right make invocation : / 20:22:54
@toonn:matrix.orgtoonn This seems like quite the papercut making contributing to the Nix docs not for mere mortals tbh : / 20:23:25
16 Feb 2022
@b:chreekat.netchreekatAsk on discourse; I'm sure somebody somewhere knows 16:23:47
17 Feb 2022
@signal-walker:matrix.orgAsh joined the room.13:48:12
18 Feb 2022
@cw:kernelpanic.cafeChinchilla Wetreat changed their display name from Chuck Winter to Chuck Winter (vi/vim).04:12:15
@cw:kernelpanic.cafeChinchilla Wetreat changed their display name from Chuck Winter (vi/vim) to Chuck Winter.04:20:42
20 Feb 2022
@papojari:artemislena.eupapojari🇪🇺🇩🇪 left the room.20:44:56
21 Feb 2022
@cw:kernelpanic.cafeChinchilla Wetreat changed their display name from Chuck Winter to Chinchilla Wetreat.00:47:22
2 Mar 2022
@niklauzg:matrix.orgNiklauz joined the room.06:54:47
3 Mar 2022
@colemickens:matrix.orgcolemickens changed their display name from colemickens 🏳️‍🌈 to colemickens.07:12:37
8 Mar 2022
@finn:tomesh.netfinn joined the room.16:10:58
10 Mar 2022
@toonn:matrix.orgtoonn changed their profile picture.11:23:16
15 Mar 2022
@jeonwh:matrix.orgjeonwh left the room.13:20:52
17 Mar 2022
@drupol:matrix.orgPol joined the room.13:41:32
@drupol:matrix.orgPolHey hi, I'm going to copy paste a message I wrote in another room.13:43:22
@drupol:matrix.orgPol I'm writing a paper using LaTeX. In this paper, I'm including a lot of snippets written in Nix. Do you have an already made lstlisting configuration specifically made for Nix so it can highlight the snippets in a better way?
I currently made one, here is how it looks like:
13:44:24
@drupol:matrix.orgPolimage.png
Download image.png
13:45:15
@drupol:matrix.orgPolI wish I could customize the colors of the assignations, but I cannot find a proper way. Feel free to suggest anything !13:45:35
@drupol:matrix.orgPol Sadly, I cannot share the whole paper right now, it's not meant to be open-source yet. But I can share the lstlisting configuration if needed. 13:47:25
@jtojnar:matrix.orgJan Tojnar Pol: I would try searching GitHub for the keywords 15:36:19
@jtojnar:matrix.orgJan Tojnaror I would just use the pygments based highlighter15:36:51
@jtojnar:matrix.orgJan Tojnar * or I would just use the pygments based highlighter (minted)15:37:06
@drupol:matrix.orgPolI did, there are not a lot of results for it. I inspired my stuff from what I found on Github already.15:37:29
@jtojnar:matrix.orgJan Tojnar searching for usepackage lstlisting nix, I found https://github.com/yannham/lambdajam-2021/blob/1d6b5f6c65f8a0600370a6c6518eef9df0af47c8/presentation.tex#L31 15:39:51
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
searching for usepackage lstlisting nix, I found https://github.com/yannham/lambdajam-2021/blob/1d6b5f6c65f8a0600370a6c6518eef9df0af47c8/presentation.tex#L31
Yeah this is basically what I'm using and I tweaked it. I wish I could customize the colors of the variables in let ... in ... bindings. But it seems that it's not something easy to do.
15:42:23
@jtojnar:matrix.orgJan Tojnaryeah, the only other I found is https://github.com/jmbaur/talks/blob/badad5450bb5bf67a3abda9683edafa71c83b044/2022/nix/nix.sty, which does not seem much better15:43:51
@drupol:matrix.orgPolThis is what I have:15:44:43
@drupol:matrix.orgPolhttps://gist.github.com/drupol/1ab0f25fea4f050f40e87d4ab75080ed15:45:34
@jtojnar:matrix.orgJan Tojnar have you tried minted yet? it tends to have better syntax highlighting and there seems to be a syntax for Nix out of the box 15:46:50
@drupol:matrix.orgPolah bon ?!15:47:06

There are no newer messages yet.


Back to Room ListRoom Version: 6