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/
mcint has quit [Ping timeout: 240 seconds]
mcint has joined #nix-lang
rajivr has joined #nix-lang
ris has quit [Ping timeout: 256 seconds]
Synthetica has joined #nix-lang
<pie_> whats some common nix expression issues that would be good to cover in an article?
<sterni> general? specific to packaging, nixpkgs?
<pie_> * by issues i mean stuff to debug
<pie_> yeah realized that was very unclear after the fact :P
<pie_> infrec is the first thing that comes to mind, but i cant think of anything else offhand
* pie_ pokes infinisil i guess
<sterni> to debug in ppls expressions or in the interpreter
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
<pie_> the former, if i understood correctly
<sterni> > let test = { builtins = { throw = x: "nope"; }; }; in with test; builtins.throw "lol"
<{^_^}> lol
<sterni> oh no
<sterni> > let test = { builtins = { throw = x: "nope"; }; test = "lol" }; in with test; test
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):489:62
<sterni> > let test = { builtins = { throw = x: "nope"; }; test = "lol"; }; in with test; test
<{^_^}> { builtins = <CODE>; test = "lol"; }
<sterni> > let foo = 12; test = { builtins = { throw = x: "nope"; }; foo = "lol"; }; in with test; foo
<{^_^}> 12
<sterni> okay fair enough
<puck> with scope always evaluates after let
<sterni> with scope apparently can't shadow anything? which is pretty good I'd say
rajivr has quit [Quit: Connection closed for inactivity]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang
ris has joined #nix-lang
ris has quit [Remote host closed the connection]
ris has joined #nix-lang
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #nix-lang