!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1536 Members
Nix programming language274 Servers

Load older messages


SenderMessageTime
18 Aug 2024
@r3vx:matrix.orgr3vx joined the room.14:16:53
19 Aug 2024
@ilaumjd:matrix.orgilaumjd
~ ➤ nix eval --expr '{x = "([[$all_status$ahead_behind]]($style))";}'
{ x = "([[$all_status$ahead_behind]]($style))"; }

~ ➤ nix eval --expr '{x = "([\[$all_status$ahead_behind]\]($style))";}'
{ x = "([[$all_status$ahead_behind]]($style))"; }

~ ➤ nix eval --expr '{x = "([\\[$all_status$ahead_behind]\\]($style))";}'
{ x = "([\\[$all_status$ahead_behind]\\]($style))"; }

~ ➤ nix eval --expr '{x = "([\\\[$all_status$ahead_behind]\\\]($style))";}'
{ x = "([\\[$all_status$ahead_behind]\\]($style))"; }

~ ➤ nix eval --expr "{x = ''([\[\$all_status\$ahead_behind]\](\$style))'';}"
{ x = "([\\[$all_status$ahead_behind]\\]($style))"; }

~ ➤ nix eval --expr "{x = ''([\\[\$all_status\$ahead_behind]\\](\$style))'';}"
{ x = "([\\[$all_status$ahead_behind]\\]($style))"; }


~ ➤ nix eval --expr "{x = ''([''\[\$all_status\$ahead_behind]''\](\$style))'';}"
{ x = "([[$all_status$ahead_behind]]($style))"; }

why everyting produce 0 or 2 backslashes? how to produce 1 backslash?

00:19:05
@emilazy:matrix.orgemily "\\" is a string that contains one backslash 00:22:10
@emilazy:matrix.orgemilybecause that's how you escape a backslash in the string literal syntax00:22:22
@emilazy:matrix.orgemily
nix-repl> builtins.trace "\\" null
trace: \
null
00:22:38
@emilazy:matrix.orgemily
nix-repl> :p "\\"
\
00:22:50
@matt:mymu.pub@matt:mymu.pub joined the room.07:33:14
@stooj:matrix.org@stooj:matrix.org joined the room.13:17:52
@arianvp:matrix.orgArianWe really ought to have a nixbot in here17:30:45
@ity:itycodes.orgTranquil ItyHow's the IO purity of Nix ?17:41:18
@ity:itycodes.orgTranquil ItyLike, as a language17:41:29
@ity:itycodes.orgTranquil Ity * Like, as a language, from within the language17:41:34
@ity:itycodes.orgTranquil ItyIk that there's IO impls but unsure how they work17:41:48
@infinisil:matrix.orginfinisil Tranquil Ity: Not really what you're asking, but https://github.com/infinisil/nix-rts :P 17:56:00
@ity:itycodes.orgTranquil ItyYaa I think you linked that before, the question is how it works ig18:02:33
20 Aug 2024
@benjaminedwardwebb:envs.netbenwebb changed their display name from benjaminedwardwebb to benwebb.12:44:18
@lgmrszd:possum.citylgmrszd changed their profile picture.18:03:54
21 Aug 2024
@sigmanificient:matrix.orgSigmanificient joined the room.00:46:32
@mauerlaeufer:matrix.org@mauerlaeufer:matrix.org left the room.12:23:12
@luna:bddvlpr.comLuna changed their display name from Luna Simons to Luna.16:22:35
@shymega:one.ems.host@shymega:one.ems.host joined the room.16:36:42
22 Aug 2024
@asmundesen:matrix.orgArtur Manuel joined the room.12:32:13
@asmundesen:matrix.orgArtur Manuel moving an issue i have been having to this channel since its more on topic here than #Nix / NixOS But i 13:06:37
@asmundesen:matrix.orgArtur Manuel moving an issue i have been having to this channel since its more on topic here than #Nix / NixOS But I recently had an issue involving a library function with mkMerge that was a consequence of not using flake-parts. 13:08:26
@asmundesen:matrix.orgArtur ManuelMy issue is that I now dont know what function I can apply to hold the place of mkMerge, and I don't think Noogle is helping much13:14:14
@asmundesen:matrix.orgArtur Manuelmy current attempted solutions (map, listToAttrs, maybe more) have all not worked14:03:10
@asmundesen:matrix.orgArtur Manuelalmost considering rewriting li14:03:26
@asmundesen:matrix.orgArtur ManuelRedacted or Malformed Event14:03:32
@asmundesen:matrix.orgArtur Manuel* almost considering rewriting my mkHost function14:04:38
@matrix:03j.de@matrix:03j.de joined the room.14:21:30

Show newer messages


Back to Room ListRoom Version: 6