gchristensen changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | 18.03 release managers: fpletz and vcunat | https://logs.nix.samueldr.com/nixos-dev
pie_ has quit [Ping timeout: 240 seconds]
Sonarpulse has quit [Ping timeout: 256 seconds]
goibhniu has quit [Quit: Leaving.]
page has quit [Ping timeout: 240 seconds]
page has joined #nixos-dev
matthewbauer has quit [Remote host closed the connection]
orivej has joined #nixos-dev
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
Drakonis has joined #nixos-dev
Drakonis has quit [Remote host closed the connection]
Sonarpulse has joined #nixos-dev
Sonarpulse has quit [Ping timeout: 245 seconds]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-dev
{^_^} has joined #nixos-dev
tv1 has joined #nixos-dev
tv2 has joined #nixos-dev
tv has quit [Ping timeout: 240 seconds]
tv1 has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
julm has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
<zimbatm> anyone remembers why IFD is disabled on Hydra?
<ikwildrpepper> IFD?
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
<andi-> import from derivation (IIRC)
averell has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos-dev
averell has joined #nixos-dev
<ghuntley> working on a nixos bring-up on windows subsystem for linux
<ghuntley> (i.e. nixos in the windows app store along side ubuntu)
averell has quit [Ping timeout: 245 seconds]
<niksnut> strictly speaking, IFD is not disabled on hydra
<niksnut> that's a common misconception, but it's probably a good thing if people believe that ;-)
averell has joined #nixos-dev
<LnL> well the sources have to be whitelisted so it won't work on the nixos.org instance, right?
<ghuntley> let's say I get a bring up of nixos on windows (ie wsl) - who would be the best person for me to pair with within #nixos-dev to make this an official thing (tm) ie ci and everything.
* gchristensen waves to ghuntley
<gchristensen> ofborg blocks ifd too
<gchristensen> ghuntley: I can't find you on twitter b/c your nickname is all fancy fonts :')
<gchristensen> ofborg blocks IFD because untrusted PRs are evaluated
<ghuntley> ah sorry about that - direct link - https://twitter.com/GeoffreyHuntley
rsa_ has joined #nixos-dev
<LnL> gchristensen: I think it's still allowed, same as hydra
<gchristensen> oh?
<LnL> but only with sources from NIX_PATH so it's unusable in practice
<gchristensen> hmm
<LnL> does it set allow-import-from-derivation?
<gchristensen> nope :)
rsa has quit [Ping timeout: 256 seconds]
<LnL> yeah so it's still allowed, but restrict-eval makes it so no paths except for stuff in NIX_PATH are allowed
rsa has joined #nixos-dev
rsa_ has quit [Ping timeout: 240 seconds]
<gchristensen> cool
<ghuntley> super sketchy but decent progress https://usercontent.irccloud-cdn.com/file/MKGrgiRr/image.png
<ghuntley> What's the backstory behind /run/ (tmpfs) - after recommendations on where in the src/ of nixos to go splunking.
<LnL> hmm?
<gchristensen> WOW
<ghuntley> I need to do some reading through nixpkg/nixos to understand how `/run/current-system` and nixstore internals functions. Retiring for the night.
<gchristensen> way to go, that is super cool
jtojnar has quit [Ping timeout: 264 seconds]
<pie_> is there any chance syntax like networking.{hostName = ...; somethingelse = ...} could be added? basically i want to group some stuff but obviously you cant do someset = {....} twice
<pie_> mainly an aesthetic thing i guess
jtojnar has joined #nixos-dev
<gchristensen> it would make validation a bit trickier, and maybe confusing for newbies, I think
<pie_> i cant really argue for it either way but i think it would be nice?
<pie_> why would it be confusing? (although you could say nix has enough of a learning curve already so who cares? :PP)
<manveru> you can do `networking = { hostName = ...; } // { somethingelse = ... };`
<pie_> "basically" its just merging a.b = x; a.c = y; into a.{b=x; c=y};
<pie_> manveru, the issue it if you want to add more stuff to networking in another section?
<gchristensen> yeah but what if I also have a = { b = "foo"; };
<pie_> since youve already assigned to it you cant
<pie_> i suppose it could be an issue for typos if you forget to add a name or something but i think we have linting for nonexistent attributes and such?
<pie_> gchristensen, i dont know, what are the implications?
<gchristensen> its an error
<gchristensen> I guess I like that right now you have to choose either the a = { b = ... } option, _or_ the a.b = ... option
<pie_> why is it an error
<gchristensen> because you can't redefine a.b
<pie_> oh yeah
<pie_> thats fine i think
<pie_> its already an error as it is right now to try to redefine an attribute no? i think that makes sense.
<pie_> this would only be for disjunct sets
<pie_> syntactic sugar
<pie_> manveru, does that work if networking is already defined?
<manveru> if it's in a different import
<manveru> attrsets cannot have the same key twice
<manveru> if you group your stuff anyway, you can as well split them into files ;)
<pie_> ehhh, kind of
<manveru> i mean, don't get me wrong, i like your idea, but i don't think it's useful enough to warrant a change to the language...
<pie_> :(
<pie_> if we have stuff like path literals might as well this :pp
<gchristensen> not sure that is true/valid
<gchristensen> since Nix is fundamentally about building paths, it makes sense to have a path type
<pie_> yeah that was tongue-in-cheek
<pie_> but paths seem to be treated as strings?
<pie_> gchristensen, also i just deleted my github account....which is rather annoying in this regards
<gchristensen> well, you may want to recreate it then I guess
<manveru> they're "special" strings, in that they keep a reference to the path, if i remember right
<pie_> i deleted it on a matter of principle :I
* pie_ gently pokes manveru ? :pp
<manveru> taking advantage of less principled individuals? :P
<pie_> hehe
<manveru> edolstra is niksnut in this channel, so you can just tell him directly ;)
<pie_> gchristensen, nix also seems to fundamentally be about sets :p
<pie_> manveru, ah i see
<pie_> manveru, yeah edo didnt autocomplete so.. :D
<pie_> niksnut, basically i would like to be able to do the one at the bottom a opposed to the top: https://bpaste.net/show/fb184e879edf
<gchristensen> pie_: you can already do that
<gchristensen> networking.interfaces = { ... works fine
<niksnut> yes, that would be nice
<pie_> ah wait i did basically miss the point since i only did things that are disjoint anyway :P
<niksnut> gchristensen: currently it doesn't merge sets
<gchristensen> yeah
<niksnut> i.e. networking = { ... } and networking.interface = { ... } won't be merged
<pie_> so maybe move the two interfaces into sepatate .{} section , but this is mainly supposed to be illustrative anyway
<pie_> niksnut, oh yeah
* pie_ noob
<pie_> :p
<pie_> is there some point at which language revisions are planned to be released or...?
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-dev
<pie_> short term hack could simply be splitting these subset assignments in a preprocessing step xD
<pie_> hm /me ponders about nesting
<pie_> .{.{ ... }} doesnt really seem like a good thing so i guess youd have to constrain to identifier.{ .. }
jtojnar has quit [Quit: jtojnar]
<gchristensen> how about networking."{.{.{foo = ''bar'';}.}.}" = true
<pie_> gchristensen, lolwut
<gchristensen> > builtins.attrNames { networking."{.{.{foo = ''bar'';}.}.}" = true; }.networking
<{^_^}> [ "{.{.{foo = ''bar'';}.}.}" ]
* LnL stares
<gchristensen> mmyeessss?
Sonarpulse has joined #nixos-dev
<pie_> but...thats just a string? xD
ixxie has joined #nixos-dev
<gchristensen> :)
ixxie_ has joined #nixos-dev
ixxie has quit [Ping timeout: 260 seconds]
<pie_> right? xD
<gchristensen> > builtins.toJSON { networking."{.{.{foo = ''bar'';}.}.}" = true; }
<{^_^}> "{\"networking\":{\"{.{.{foo = ''bar'';}.}.}\":true}}"
matthewbauer has joined #nixos-dev
ixxie has joined #nixos-dev
ixxie_ has quit [Ping timeout: 240 seconds]
ixxie_ has joined #nixos-dev
ixxie has quit [Ping timeout: 260 seconds]
ixxie_ has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos-dev
ixxie_ has joined #nixos-dev
ixxie has quit [Ping timeout: 248 seconds]
ixxie_ has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos-dev
ixxie has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos-dev
ixxie_ has joined #nixos-dev
ixxie has quit [Ping timeout: 268 seconds]
ixxie_ has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos-dev
ixxie has quit [Ping timeout: 248 seconds]
tv2 has quit [Quit: WeeChat 2.0]
tv has joined #nixos-dev
ixxie has joined #nixos-dev
ixxie_ has joined #nixos-dev
ixxie has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos-dev
ixxie has quit [Client Quit]
ixxie_ has quit [Ping timeout: 256 seconds]
Sonarpulse has quit [Ping timeout: 260 seconds]
<matthewbauer> Does anyone know why the "libcxx" thing is always needed on macOS but not linux? See: https://github.com/NixOS/nixpkgs/pull/42074/files. We hit it fairly frequently when building c++ programs.
<gchristensen> I was just asking LnL about that
<matthewbauer> yeah it might be an LLVM vs GCC thing?
<matthewbauer> but it could also be some apple weirdness
<acowley> Those paths are the worst
<LnL> some versions of python use $CC/cc for everything, even c++ code
<LnL> but I thought we fixed that a while back
<matthewbauer> ok that makes sense - so if they used clang++ it would work correctly?
<LnL> yeah, exactly
<matthewbauer> i think it is fairly common to do because it GCC handles it fine
<LnL> I'll try to find the patch and see what's going on there
<LnL> I'm pretty sure it's because of our cc-wrapper, but not sure why linux doesn't have problems then
<LnL> could be because gcc and stdc++ are in the same store path
<matthewbauer> yeah gcc has a lot of those things bundled in so it may just always be able to find it
<LnL> hrm, can't figure out how to override the stdenv
<matthewbauer> looked at overrideCC?
<LnL> on what?
<LnL> ah no, I mean ???.override { stdenv = clangStdenv; }
<LnL> I think the fixpoint is messed up somewhere
MichaelRaskin has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
orivej has joined #nixos-dev
matthewbauer has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
Sonarpulse has joined #nixos-dev
pie_ has quit [Ping timeout: 260 seconds]
matthewbauer has joined #nixos-dev
pie_ has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
pie__ has joined #nixos-dev
pie_ has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Ping timeout: 248 seconds]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos-dev
Sonarpulse has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos-dev
* LnL stares at the trunk queue
pie__ has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Ping timeout: 256 seconds]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Ping timeout: 245 seconds]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Ping timeout: 265 seconds]
matthewbauer has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos-dev
jtojnar has joined #nixos-dev
matthewbauer has quit [Ping timeout: 264 seconds]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Write error: Connection reset by peer]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Read error: Connection reset by peer]
pie__ has joined #nixos-dev
pie_ has quit [Read error: Connection reset by peer]