<kyren>
it seems like nix-shell is resetting my NIX_PATH variable, but this only seems to happen on a machine which I'm configuring with nix-darwin
<kyren>
I'm not 100% sure it's related to nix-darwin though
nD5Xjz has joined #nix-darwin
jtojnar has quit [Ping timeout: 272 seconds]
jtojnar has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 250 seconds]
nD5Xjz has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 245 seconds]
philr has quit [Ping timeout: 268 seconds]
nD5Xjz has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
philr has joined #nix-darwin
jtojnar has joined #nix-darwin
teehemka_ has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 272 seconds]
nD5Xjz has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
peacememories has joined #nix-darwin
Profpatsch has left #nix-darwin ["WeeChat 0.4.3"]
<thefloweringash>
how recent is your nix-darwin? until last October-ish each shell would completely reset its environment
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teehemka_ has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
teehemkay has joined #nix-darwin
<teehemkay>
I've got a new laptop and finally decided to make to switch to nix-darwin. I've tried to install Nix in multi-user mode. Even though the install succeeded, I get the following error "error: unexpected end-of-file" when I try to install anything.
<teehemkay>
I'm running MacOS Mojave, the latest version
<teehemkay>
An Nix is @ version 2.2.1
<teehemkay>
I was also wondering if it's not better (required?) to install in single user mode for nix-darwin.
<teehemkay>
Any help would be greatly appreciated. I'm still a nix noob.
jonge has joined #nix-darwin
<teehemkay>
jonge: Hi
<jonge>
hey teehemkay
<jonge>
so i grepped through nix's source and have seen that this exact error message comes from an exception that is thrown at 3 different spots.
<jonge>
always in the context of unbuffered file reads... but no idea what files are too early EOF for nix.
<jonge>
not too helpful an error message. :D
<teehemkay>
Yep. I've tried running an install in super-verbose mode but the error is still triggered without any context.
<{^_^}>
nix#2523 (by periklis, 13 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<jonge>
teehemkay: interesting. i simply removed nix again and reinstalled, and now i can still not install software, but "nix-channel --update" works again. something fishy
<teehemkay>
jonge: Yep. I also removed nix and re-installed, but I get the same problem
<teehemkay>
jonge: Do you have a multi-user install (--daemon)
<jonge>
so it's still not solved for me but appears differently now.
<jonge>
teehemkay: yes multi user
<LnL>
can you paste the output of nix doctor
<jonge>
LnL: just "nix doctor" ? it says "store uri: daemon"
<teehemkay>
LnL: same here
<LnL>
nix-daemon had that problem on >2.1
<jonge>
do you know what's causing it?
<teehemkay>
Interesting, I've been using multi-user on my two other Macs running High Sierra with Nix 2.2 and it works flawlessly.
<LnL>
partially
<teehemkay>
LnL: Would you advise, installing Nix in single-user mode considering I want to run nix-darwin?
<LnL>
single user or 2.1.3 are the easiest workarounds
<teehemkay>
OK, thanks. I'll try single user.
<jonge>
yeah singleuser works. thank you!
<thefloweringash>
Another workaround also seems to be "enable ipv6", which I find just a bit entertaining
<thefloweringash>
> It looks like some kind of fallback that happens when no ipv6 address can be resolved for the host.
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):219:1
<jonge>
oh i see. interesting
<teehemkay>
I confirm that single-user works, thank you!
<teehemkay>
thefloweringash: thanks for the tip!
<thefloweringash>
think you mean LnL :-)
philr has quit [Ping timeout: 250 seconds]
<teehemkay>
Actually both, you and him 😉
<matthewbauer[m]>
Is anyone else having issues after the update to macOS 10.14.3? I keep getting "Unexpected end-of-file" and this message: ```objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
<matthewbauer[m]>
objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
<matthewbauer[m]>
```
<matthewbauer[m]>
ugh: ```objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
<matthewbauer[m]>
objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
<matthewbauer[m]>
Setting --substituters '' seems to help
<dhess>
LnL: is there an easy way to add an argument to the nix-darwin module system? as in { config, pkgs, lib, foo, ... } if I wanted to add an argument "foo"