sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 19.03 released! https://discourse.nixos.org/t/nixos-19-03-release/2652 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html https://r13y.com | 19.03 RMs: samueldr,sphalerite | https://logs.nix.samueldr.com/nixos-dev
<worldofpeace> cool jtojnar pushed the changes
aszlig has quit [Quit: Kerneling down for reboot NOW.]
aszlig has joined #nixos-dev
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #nixos-dev
<arianvp> what part of the instalation script sets up /nix/var/nix/gcroots/profiles symlink?
<arianvp> I grepped through nixpkgs for gcroots and cant find any reference to it
<arianvp> reason I ask, it looks like this on my system, which is not good:
<arianvp> lrwxrwxrwx 1 root root 25 Jun 13 20:46 profiles -> /mnt/nix/var/nix/profiles
psyanticy has joined #nixos-dev
<arianvp> I thought it was nixos/modules/services/misc/nix-daemon.nix but that doesn't create that one
lassulus has quit [Ping timeout: 245 seconds]
tv has quit [Ping timeout: 245 seconds]
<arianvp> the weird thing is nix-store --gc --print-roots still shows /nix/var/nix/profiles eventhough it is not symlinked in /nix/var/nix/gcroots
<arianvp> also when I strace nix-daemon or nix-store ahwn running nix-store --gc --print-roots it doesn't even open "/nix/var/nix/gcroots" which is very suspicious to me
<arianvp> is information somehow cached in memory?
<gchristensen> does strace capture all the threads which already exist?
<arianvp> I'm running nix-daemon from a terminal
<arianvp> sudo strace nix-daemon 2>&1 | grep "/nix/var/nix"
<gchristensen> with -f?
<arianvp> what does -f do?
<gchristensen> follows forks
<arianvp> a thanks
<arianvp> that's per-user
<arianvp> also funnily enough that env variable is not set in my terminal session :/
<gchristensen> I guess I'm not understanding the question :)
<gchristensen> it isn't an exported variable
<arianvp> ah
<arianvp> ok so I have /nix/var/nix/gcroots/profiles
<arianvp> which is symlinked (because of some wierd reason im trying to figure out) to /mnt/nix/var/nix/profiles
<arianvp> which is a directory that doesn't exist on my system
<gchristensen> weird
<gchristensen> me too
<gchristensen> I don't know why we have that
<arianvp> but! nix-daemon still stats /nix/var/nix/profiles
<arianvp> when running nix-store --gc --print-roots
<gchristensen> yes, profiles makes sense
<gchristensen> oh... weird
<gchristensen> so it probabl yhappens in stage-1.sh
<arianvp> well the docs mention that only /nix/var/nix/gcroots and _nothing else_ is stat'd
<arianvp> I dont ahve a symlink to my profiles directory in my gcroots yet it's still statted
<arianvp> gchristensen: is it also symlinked to /mnt in your system?
<gchristensen> yep
<arianvp> so I have this weird gut feeling that this is a bug, and then it was maybe worked around on the Nix side by statting /nix/var/nix/profiles directly?
<arianvp> pure speculation but that would explain both things
<arianvp> aha yes so it is there in the nix code.
<gchristensen> sounds like a docs PR waiting to happen :)
<arianvp> yes! will do
<arianvp> but then who is creating this bogus symlink :)
<arianvp> (and if we can fix the symlink, then it doesnt have to be in the nix code in the first place, right?)
<gchristensen> yes, that is a great question
<gchristensen> (one sec)
<gchristensen> (I don't think it is a bug / workaround)
<arianvp> this seems to be a related commit
<gchristensen> the reason I suspect stage-1 is because it isn't a relic of my installation, and it is recent to the last 2 weeks of running my system
<arianvp> that commit also seems to change the behaviour from how the GC is actually documented https://nixos.org/nix/manual/#ssec-gc-roots
<gchristensen> nice find :)
<gchristensen> however "/mnt" isn't used in stage-1, "/mnt-root" is
<arianvp> maybe it's nixos-install ?
<arianvp> the only command where you pass a /mnt path right?
<gchristensen> actually yeah I take back the part about how it must be recent
<gchristensen> since my entire /nix is persisted
<arianvp> I'll dump these breadcrumbs into an issue. so we can investigate later. I gotta go back to work
<gchristensen> cool
<{^_^}> nix#3060 (by arianvp, 2 minutes ago, open): Nix garbage collector is implemented differently from how it is documented
<roberth> arianvp++
<{^_^}> arianvp's karma got increased to 4
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
jtojnar has quit [Quit: jtojnar]
tv has joined #nixos-dev
<infinisil> manveru: Hey, would you mind if I made https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/mint/crystal2nix.cr into `pkgs.crystal2nix`?
<infinisil> I'm in the process of writing a buildCrystalPackage, which can reuse that small helper you wrote for generating a shards.nix
<manveru> infinisil: not at all
<manveru> it was just the only crystal package at the time :)
<infinisil> Alright cool :)
lassulus has joined #nixos-dev
<infinisil> manveru: To fill out meta, what license do you want? And can I put you in as a maintainer?
<manveru> MIT is fine, and yeah
<infinisil> Alright
drakonis has joined #nixos-dev
ixxie has joined #nixos-dev
__monty__ has joined #nixos-dev
drakonis has quit [Quit: WeeChat 2.5]
<{^_^}> #67510 (by Infinisil, 30 seconds ago, open): Crystal package builder
orivej has joined #nixos-dev
<manveru> infinisil: will review :)
<manveru> heh "I don't really feel like writing docs right now"
<infinisil> manveru: I'm actually writing docs right now anyways :D
<gchristensen> woot
orivej has quit [Ping timeout: 245 seconds]
orivej has joined #nixos-dev
pie_ has quit [Ping timeout: 264 seconds]
<infinisil> Only because I found out how easy it was to avoid having to write xml when writing a new language framework section
phreedom_ has quit [Remote host closed the connection]
<infinisil> :P
phreedom has joined #nixos-dev
jtojnar has joined #nixos-dev
psyanticy has quit [Quit: Connection closed for inactivity]
pie_ has joined #nixos-dev
<worldofpeace> I've added our release managers names to https://github.com/NixOS/nixpkgs/milestone/16 description, as it used to be "TBA"
<gchristensen> +1
ixxie has quit [Ping timeout: 245 seconds]
__monty__ has quit [Ping timeout: 248 seconds]
{`-`} has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
<ryantm> Should we also update the topic of this irc channel?
<samueldr> it's still technically right
<ryantm> ha