infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
puck has quit [Ping timeout: 264 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
puck has joined #nix-lang
jared-w_ has quit [Ping timeout: 258 seconds]
jared-w_ has joined #nix-lang
koh has joined #nix-lang
jared-w_ is now known as jared-w
andremedeiros has quit [Quit: ZNC 1.8.1 - https://znc.in]
andremedeiros has joined #nix-lang
__monty__ has joined #nix-lang
koh has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nix-lang
aleph- has joined #nix-lang
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nix-lang
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nix-lang
__monty__ has quit [Quit: leaving]
kalbasit_ has joined #nix-lang
<aleph-> Question, how is builtins.fromTOML supposed to work? It just accepts a string right?
<aleph-> So `builtins.fromTOML (builtins.readFile /path/to/weechat.irc.conf)` should conceiveably work? Or is there a special way to read the ini file before passing to it?
<infinisil> aleph-: That's right
<infinisil> It takes a string
<aleph-> infinisil: Got it, trying to figure out what's breaking. Since it seems to not like the weechat toml format.
<aleph-> Bizzarely enough.
<infinisil> aleph-: You sure it's toml?
<infinisil> Could be just INI
<aleph-> Crud, yeah it's ini
<aleph-> I think
<aleph-> Any funcs available in nixpkgs for plain init format?
<infinisil> aleph-: Reading?
<infinisil> Nope
<aleph-> Alright, well there are some writing funcs. So I'll just convert it to json, convert that to nix expr and then I can easily write it out
<infinisil> Except it might not even be INI :P
<infinisil> I took a peak at weechat's source, and there's no mention of INI anywhere
<infinisil> Though it might be compatible with it
<aleph-> I think it might be compatible
<aleph-> Else I'm writing my own func to munge it :P