worldofpeace_ changed the topic of #nixos-dev to: #nixos-dev NixOS Development (#nixos for questions) | NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 19.09 RMs: disasm, sphalerite; 20.03: worldofpeace, disasm | https://logs.nix.samueldr.com/nixos-dev
cole-h has joined #nixos-dev
cole-h has quit [Client Quit]
cole-h has joined #nixos-dev
ris has quit [Ping timeout: 256 seconds]
msirabella has quit [Quit: Goodbye, World!]
mjsir911 has joined #nixos-dev
<Gaelan> Ericson2314 do you know why the story around https://github.com/NixOS/nixpkgs/blob/0f5ce2fac0c726036ca69a5524c59a49e2973dd4/pkgs/build-support/bintools-wrapper/default.nix#L259? Propogating libc's binaries from binutils-wrapper breaks cross, and I'm a little confused about why it's ever necessary
<Ericson2314> Jtojnar I think there some sort of autoconf change I've seen it in other packages too
<Ericson2314> Gaelan checking
<Ericson2314> No idea about libc in particular
<Ericson2314> Gaelan the libc bin could well be a holdover from earlier era. I'm not sure people user install the wrapped tools much, and they can always manually install libc for binaries of they like
<Gaelan> alright, i'll remove it and see if it breaks anything
<Gaelan> (which means rebuilding stdenv for the god-knows-how-manyth time in the past week…)
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-dev
<Gaelan> Ericson2314++ btw
<{^_^}> Ericson2314's karma got increased to 6
<Ericson2314> Gaelan++ for rebuilding stdenv
<{^_^}> Gaelan's karma got increased to 2
<Gaelan> lol
<Ericson2314> When you take things off my to-do list, or discoverer things I never knew to put on in the first place, it's very satisfying :)
<clever> about producing a list of drv's like this for automated consumption
<clever> i'm thinking stdout is already in use by things like nix-build and nix-instantiate
<clever> stderr is filled with trace statements and other stuff
<clever> so where is it best to log it all? maybe to a file, like $IFD_LOG_PATH ?
drakonis1 has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
drakonis has quit [Quit: WeeChat 2.8]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-dev
orivej has joined #nixos-dev
cole-h has quit [Quit: Goodbye]
pat_h has joined #nixos-dev
cole-h_ has quit [Quit: Goodbye]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
pat_h has quit [Quit: Connection closed]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-dev
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
bgamari_ has joined #nixos-dev
chrisaw has quit [Ping timeout: 252 seconds]
cbarrett has quit [Ping timeout: 252 seconds]
bgamari has quit [Ping timeout: 252 seconds]
cbarrett has joined #nixos-dev
chrisaw has joined #nixos-dev
nschoe has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
orivej_ has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
<bennofs[m]> Hydra.nixos.org question: I watched the build output of an in-progress build. Immediately after the build ended, I get "log file is not available". Why would that happen?
<bennofs[m]> Ah, it's a hydra bug: if the package name contains a +, that is not URL encoded so the s3 log URL is wrong
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
__monty__ has joined #nixos-dev
teto has joined #nixos-dev
justanotheruser has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos-dev
<alexarice[m]> Does anyone know how much memory hydra has available for builds. I have a package that needs about 10GB of RAM to build and is currently told not to build on hydra though I'm wondering if this is necessary?
<MichaelRaskin> I would assume it is also about the package being very large when built (and not popular enough)
<alexarice[m]> the resulting package is very small though you are correct that it is likely not popular enough
<MichaelRaskin> Hmm. What package it is?
<clever> alexarice[m]: which package is it?
<alexarice[m]> `agda-categories`
<alexarice[m]> currently broken but I'm going to try to update the version
<MichaelRaskin> Oh oh oh
<MichaelRaskin> That probably counts as disproportionately CPU-expensive
<alexarice[m]> I put the no hydra build on specifically because of the memory issue
<alexarice[m]> it's reasonably CPU-expensive but I don't think absurdly so
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
Jackneill has quit [Ping timeout: 240 seconds]
<alexarice[m]> checking how much cpu/ram it uses atm
<MichaelRaskin> I think
<MichaelRaskin> that Chromium might be the hungriest of the popular builds?
<MichaelRaskin> But not sure how much it needs now
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-dev
Jackneill has joined #nixos-dev
<alexarice[m]> takes `396.33 secs` to build on my computer though I couldn't work out how to show memory stats
<clever> alexarice[m]: if you run `NIX_REMOTE=local nix-build ...` as root, then the build will be a child of nix-build (not nix-daemon)
<clever> alexarice[m]: then you can use normal things like time to measure the max rss of the proc and its children
<alexarice[m]> clever: I tried to run time but it doesn't seem to show memory, I think it was using builtin time instead of gnu time
<clever> alexarice[m]: `command time` forces it to use the version in PATH
<alexarice[m]> thanks
<alexarice[m]> clever: Do you need to run as root to do the `NIX_REMOTE` thing
nschoe has quit [Ping timeout: 244 seconds]
<clever> alexarice[m]: yeah
<clever> alexarice[m]: you need write perms to /nix/store for that to work
teto has quit [Ping timeout: 260 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
drakonis_ has quit [Ping timeout: 240 seconds]
drakonis_ has joined #nixos-dev
<alexarice[m]> `time -v` is claiming I only needed ~3GB so maybe the problem has gone away since `v0.1`
<alexarice[m]> either that or `time` is lying to me
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
justanotheruser has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos-dev
teto has joined #nixos-dev
alp has joined #nixos-dev
orivej_ has quit [Ping timeout: 256 seconds]
justanotheruser has joined #nixos-dev
orivej has joined #nixos-dev
CRTified has quit [Quit: Gateway shutdown]
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos-dev
Valodim has quit [Quit: ZNC 1.7.5 - https://znc.in]
Valodim has joined #nixos-dev
Valodim has quit [Quit: ZNC 1.8.0 - https://znc.in]
Valodim has joined #nixos-dev
<emily> cgroups might be a more reliable way to check, maybe systemd-run(1) could help you?
<emily> (but I don't know that time -v lies, either, just don't know that it doesn't)
drakonis has joined #nixos-dev
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos-dev
drakonis has quit [Ping timeout: 260 seconds]
teto has quit [Ping timeout: 260 seconds]
ixxie has joined #nixos-dev
teto has joined #nixos-dev
justanotheruser has quit [Ping timeout: 252 seconds]
ixxie has quit [Ping timeout: 240 seconds]
orivej_ has quit [Ping timeout: 265 seconds]
ixxie has joined #nixos-dev
orivej has joined #nixos-dev
justanotheruser has joined #nixos-dev
drakonis has joined #nixos-dev
cole-h has joined #nixos-dev
ixxie has quit [Ping timeout: 265 seconds]
ixxie has joined #nixos-dev
cole-h_ has joined #nixos-dev
cole-h__ has joined #nixos-dev
<das_j> is there any working setup where I can override __nixPath with a scopedImport?
<das_j> because when I tried setting it to [], my <> imports were still found
cole-h has quit [Ping timeout: 265 seconds]
<gchristensen> you have to override import, too, iirc
<clever> yeah, scopedImport isnt recursive
<clever> you have to override all ways of calling import to make it spread
<clever> and that harms performance, becauce import cant cache anymore
cole-h__ is now known as cole-h
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
orivej_ has joined #nixos-dev
orivej has quit [Read error: Connection reset by peer]
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #nixos-dev
teto has quit [Ping timeout: 244 seconds]
<das_j> But why? I thought only <> was using __nixPath, and import only imports the path it gets from <>
ris has joined #nixos-dev
<clever> das_j: when you use scopedImport, it messes with the scope, and changes assumtions that where made at parse time
<clever> das_j: when nix parses a file, and it comes across `import`, and there are no variables named such, and no with statements, it immediately wires that keyword up to the primop
<clever> das_j: but when you scopedImport, you can change what `import` means, and that screws with how it parsed the file
<clever> das_j: so nix has to re-parse it for your given overrides
<clever> and there is no way to compare 2 sets recursively, so it cant know if you gave the same set twice
<clever> so all caching on import is disabled
orivej has joined #nixos-dev
orivej_ has quit [Read error: Connection reset by peer]
evils has quit [Quit: Lost terminal]
evils has joined #nixos-dev
teto has joined #nixos-dev
drakonis1 has quit [Ping timeout: 246 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-dev
drakonis1 has joined #nixos-dev
orivej_ has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
bridge[evilred] has quit [Remote host closed the connection]
<Gaelan> So for some reason, building a darwin->linux cross gcc attempts to invoke ldconfig at build time
bridge[evilred] has joined #nixos-dev
red[evilred] has joined #nixos-dev
<Gaelan> is there any reason that's necessary, or could i just patch it out and/or give it a dummy ldconfig?
alp has quit [Remote host closed the connection]
alp has joined #nixos-dev
<clever> Gaelan: ldconfig will never work under nix, so you should just disable it
<Gaelan> alright
<Gaelan> now just need to figure out how to do that
<clever> Gaelan: writeShellScriptBin "ldconfig" "exit 0" is a cheap way, then add it to nativeBuildInputs
<clever> > writeShellScriptBin "ldconfig" "exit 0"
<{^_^}> "<derivation /nix/store/9ff55p6rxn9s3nynccv2pk7c9wla9wpf-ldconfig.drv>"
* clever heads off to bed
<Gaelan> clever++, gn
<{^_^}> clever was put on Santa's "nice" list
<Gaelan> santa will now run clever at lower priority, i guess
<cole-h> It didn't say *where* on the nice list, though...
orivej_ has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-dev
teto has quit [Ping timeout: 252 seconds]
Jackneill has quit [Ping timeout: 258 seconds]
alp has quit [Ping timeout: 256 seconds]
Jackneill has joined #nixos-dev
alp has joined #nixos-dev
teto has joined #nixos-dev
drakonis1 has quit [Ping timeout: 260 seconds]
drakonis1 has joined #nixos-dev
pat_h has joined #nixos-dev
pat_h has quit [Client Quit]
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #nixos-dev
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<matthewbauer> @niksnut Does pure-eval disallow imports from /all/ paths? I was trying to build my nixos configuration with pure-eval, but can't out how to import's. Maybe i just want restrict-eval?
<matthewbauer> I'm intentionally avoiding using flakes as of now, but that might be the only true fix
<gchristensen> you have to use a builtins fetcher to get the path
phreedom has quit [Ping timeout: 240 seconds]
orivej_ has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
phreedom has joined #nixos-dev
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
<matthewbauer> gchristensen: so that requires commiting & pushing everything right? I'd like a way to build the working tree as well
<gchristensen> builtins.fetchGit { url = ./.; } or something works okay
<gchristensen> but yeah pure mode is super intense and not conducive to iterating
<matthewbauer> yeah i think restrict-eval is a little bit smaller step
<matthewbauer> although iirc only pure eval can make use of caching?
<gchristensen> probably yes
<niksnut> only flakes can use caching
<matthewbauer> hmm...
<matthewbauer> i was under the impression flakes was just pure-eval + sugar, but it sounds like there is more to it
<matthewbauer> (from a nix language perspective that is)
__monty__ has quit [Quit: leaving]
<emily> hm? you can do (import ./foo.nix) fine, unless I'm misunderstanding?
<emily> I do that in my flakes system config at least
<emily> oh, I guess pure-eval is more restricted
justanotheruser has quit [Ping timeout: 246 seconds]
<matthewbauer> yeah i think flakes has something to handle paths within the flake
page has quit [Quit: leaving]
<Gaelan> anyone happen to have successfully built a darwin->linux cross gcc? i'd like to know if it ever worked so i can do a bisect
<Gaelan> btw, matthewbauer, I just realized that #87724 is a complete mis-diagnosis. Gulp. I'll be opening a new issue shortly
<{^_^}> https://github.com/NixOS/nixpkgs/issues/87724 (by Gaelan, 6 days ago, open): Building cross gcc on Darwin attempts to invoke Linux ldconfig
justanotheruser has joined #nixos-dev
page has joined #nixos-dev
drakonis1 has quit [Quit: WeeChat 2.7]
ixxie has quit [Ping timeout: 265 seconds]
ixxie has joined #nixos-dev
<lopsided98> Could someone review #85983 when you get a chance?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85983 (by lopsided98, 3 weeks ago, open): urdfdom, console-bridge: init
ixxie has quit [Ping timeout: 260 seconds]
teto has quit [Ping timeout: 260 seconds]