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
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos-dev
pie_ has quit [Ping timeout: 276 seconds]
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
lopsided98 has quit [Ping timeout: 276 seconds]
lopsided98 has joined #nixos-dev
__Sander__ has joined #nixos-dev
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
jtojnar has quit [Quit: jtojnar]
pie_ has joined #nixos-dev
jtojnar has joined #nixos-dev
pie__ has joined #nixos-dev
pie_ has quit [Ping timeout: 256 seconds]
<gchristensen> https://github.com/grahamc/nixos-config/blob/master/configuration.nix <- refuse to nixos-rebuild without a clean tree
<infinisil> gchristensen: git diff outputs non-zero when there's changes? Can't reproduce
<gchristensen> -q
<infinisil> Even with -q
<infinisil> Does it work for you?
<gchristensen> it seems to work ...
<gchristensen> one sec
<infinisil> $? is always zero for me, with or without changes
<gchristensen> oops
<gchristensen> somebug there, -q implies --exit-code
<gchristensen> but it isn't working
<infinisil> --exit-code does work for me
<gchristensen> fixed :)
<gchristensen> I think git has a bug then?
<infinisil> Oh right, I often have a dirty submodule, which I can't commit (git add -A wouldn't), but your way would still error out
Sonarpulse has quit [Ping timeout: 276 seconds]
mpickering has joined #nixos-dev
<gchristensen> I find myself habitually never committing to my config repos, so hopefully this fixes it:)
<gchristensen> haha
<gchristensen> I have a derivation which, when running `time nix-shell --run true` takes 5min04s. what sort of things should I be doing to figure out why it took so long? I'm not familiar at all with examining the performance of Nix stuff
<gchristensen> s/derivation/shell.nix/
<niksnut> wow that's a lot
<clever> gchristensen: how long does it take to nix-instantiate the shell.nix?
<niksnut> do you have a giant source tree that's copied every time?
<gchristensen> (checking on both questions) in other shell.nix's which take a long time (30s-1min), no I'm not copying a giant source tree but it is possible this one is
<niksnut> also try adding -vvvvv to the nix-instantiate to see what it's doing
<gchristensen> I hate having to use two laptops :')
<orivej> "NIX_DEBUG=6 nix-shell" might also tell something
<niksnut> what is NIX_DEBUG=6?
<clever> if the problem is on the nix side, that will have no effect
<clever> nix-instantiate alone confirms if the problem is on the nix side
<gchristensen> https://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes ooh it is even fairly documented!
guibou has joined #nixos-dev
<fadenb> don't act so surprised. In the nix world everything is perfectly documented ;)
<gchristensen> fadenb++
<{^_^}> fadenb's karma got increased to 1
<clever> minor nitpick: unzip should be in the nativeBuildInputs, https://nixos.org/nixpkgs/manual/#ssec-unpack-phase
<gchristensen> dang, I can't replicate the problem :/
<Dezgeg> maybe you just had a slow binary cache connection or something?
<gchristensen> I replicated it once, and another coworker can replicate it easier
<gchristensen> maybe so
<gchristensen> I'll put -vvvvvv and NIX_DEBUG=6 in to my back pocket for when they come online again. thanks niksnut / clever / orivej / Dezgeg
<clever> ,profiling
<{^_^}> Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever> gchristensen: and this
<gchristensen> oh nice
<gchristensen> 1,126 calls to scopedImport!
<clever> oh, of note, nix will cache any call to normal import
<clever> it assumes that import returns the value value, given the same path
<clever> but scopedImport disables that cache
<gchristensen> I'm not using scopedImport! `rg scopedImport` returns no results except within Nix
<clever> oh, and also, import is just an alias for `scopedImport {}`
<gchristensen> ahh
<gchristensen> It Would Be Cool (tm) if there was a builtins.performanceTick thing which would let me add an impure performance ticker for profiling
<clever> gchristensen: line 2152-2153 creates an empty attr set, line 2154 applies it to scopedImport, and then saves the partially applied in import
* gchristensen searches for how to do things he has no business doing
<gchristensen> ah, here is one which takes 41s
ixxie has quit [Ping timeout: 248 seconds]
__Sander__ has quit [Ping timeout: 255 seconds]
__Sander__ has joined #nixos-dev
__Sander__ has quit [Quit: Konversation terminated!]
bgamari has quit [Ping timeout: 240 seconds]
bgamari has joined #nixos-dev
Lisanna has quit [Quit: Lisanna]
Lisanna has joined #nixos-dev
Lisanna has quit [Quit: Lisanna]
Lisanna has joined #nixos-dev
Lisanna has quit [Client Quit]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
Sonarpulse has joined #nixos-dev
goibhniu has quit [Ping timeout: 268 seconds]
goibhniu has joined #nixos-dev
Lisanna has joined #nixos-dev
Sonarpulse has quit [Ping timeout: 265 seconds]
bgamari has quit [Quit: ZNC 1.6.6 - http://znc.in]
bgamari has joined #nixos-dev
lassulus has quit [Ping timeout: 256 seconds]
Sonarpulse has joined #nixos-dev
lassulus has joined #nixos-dev
jtojnar_ has joined #nixos-dev
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar_ is now known as jtojnar
orivej has quit [Ping timeout: 256 seconds]