<johnw>
after updating my environment, I can't compile basic c++ anymore
<johnw>
I get errors like: error: unknown type name 'size_t'
<johnw>
yay rollbacks
<johnw>
now
<johnw>
how do I coordinate this so that I'm rolling back nix-darwin, home-manager and my environments all to compatible generations
<LnL>
hmm, the clang-5 update?
<johnw>
did that _just_ happen?
<LnL>
not sure when staging was merged, but I think it was the previous one
<LnL>
I support darwin-rebuild switch --switch-generation
<johnw>
i've rolled back a generation to last night
<johnw>
let's see
<LnL>
not sure about home-manager
<johnw>
darwin-rebuild --rollback worked
<johnw>
as did nix-env
<johnw>
for home-manager I have to use "switch"
<LnL>
yeah rollback does the same just n-1
<LnL>
I also improved that when working on the installer so that it uses the previous version of nix to rollback
<johnw>
weird, home-manager generations shows you the current generations, but not which one you're on
<LnL>
that way there's a better chance it will succeed if something gets messed uup
<LnL>
I don't use the user profile
<LnL>
darwin-rebuild --list-generations
<johnw>
i should keep git-notes that associate my nix-darwin generations with nixpkgs commits
<johnw>
would make it easier to bisect long after fact
<johnw>
since i can see nixpkgs commit hashes for each generation
<johnw>
nope, clang is still super borked
<johnw>
crap
<johnw>
this is not what I wanted to be doing right now
<johnw>
this was working last night, so I don't know why rolling back wouldn't have fixed it
<LnL>
hmm good point
<LnL>
I think I only have /nix/var/nix/profiles/system-237-link/darwin-version, and that's the nixpkgs revision
<LnL>
try building a new generation with an older nixpkgs
<LnL>
that should definitively work
<LnL>
also didn't you use 17.09 for the nix-darwin part or am I misremembering that
<johnw>
i use inxpkgs-unsable
<LnL>
in that case the clang timing will be different
<LnL>
update
<LnL>
I only keep an eye on the channels and take a look what to fix if stuff gets out of sync, I don't really use them myself
<johnw>
this appears to eb a bad interaction between cabal and c++
<johnw>
clang++ on its own works fine
<LnL>
let me know if you figure out what's going on, sounds like something we might want to fix for 18.03
<johnw>
ok, now this is trange
<johnw>
if I do cabal -v build and copy and paste the command that's failing, it works
<johnw>
aha
<johnw>
cabal build works
<johnw>
nix-shell --command "cabal build" doesn't
<johnw>
ugh, builds are failing on my iMac again with SIGSEGV, but the Apple Hardware Test turned up nothing. I'll have to run a more intensive memtest86 test tonight.
<_rvl>
i wonder if the problem is that i haven't agreed to the command line developer tools license yet?
<LnL>
I don't even have the developer tools installed
<LnL>
basically looks the same as on my machine
<_rvl>
hmm! i wouldn't know where to begin debugging this
<_rvl>
would you consider putting the workaround as part of the nix install script? or does it conflict with other things?
<_rvl>
also, would ssh access to this mac help?
<LnL>
no, we should fix whatever is causing that
<LnL>
and yes possibly, but I can't really do any debugging right now
<_rvl>
sure, i will do workaround, then maybe i will bump into the reason why it doesn't work for this mac
<LnL>
I have time after work, if you're still around then
<_rvl>
yeah ok, thanks, i'll be around, not 100% sure on the ssh access yet, will discuss today
philr has quit [Quit: WeeChat 2.0.1]
<LnL>
a dtruss of a curl call might be enough to figure out what’s going on
<_rvl>
ok i'll try running though dtruss
jtojnar has quit [Ping timeout: 255 seconds]
Lisanna has quit [Quit: Lisanna]
nostate has joined #nix-darwin
<nostate>
LnL: I've got nix-darwin going and it's looking really nice. However, your example lnl.nix file doesn't have examples of all the options I want to change. Can you help me learn how to help myself in this area? What do I need to do to add new supported options from System Preferences to nix-darwin?
jtojnar has joined #nix-darwin
<nostate>
johnw: How do you decide what stuff to put in home-manager and what stuff to put in nix-darwin?
<LnL>
you mean like the defaults write stuff?
<nostate>
LnL: Let's say, for instance, that I want to change the Date & Time preferences to show the date in addition to day of the week. How would I figure out what to contribute to nix-darwin to make that possible?
<LnL>
yeah, that's a bit tricky apple has no documentation about that
<nostate>
How did you figure out the options that you have?
<LnL>
by stealing from other people :p
<nostate>
What gets changed for, say, system.defaults.dock.autohide?
<LnL>
but you can figure some stuff out by running things like opensnoop while changing settings with the ui