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.09 release managers: vcunat and samueldr | https://logs.nix.samueldr.com/nixos-dev
goibhniu has quit [Ping timeout: 252 seconds]
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
jtojnar has quit [Quit: jtojnar]
phreedom__ has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
goibhniu has joined #nixos-dev
orivej has joined #nixos-dev
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nixos-dev
matthewbauer has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 264 seconds]
pie_ has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos-dev
<rsa> `nix.extraOptions` in `man configuration.nix` mentions `gc-keep-outputs` and `gc-keep-derivations` but no such options exists in `man nix.conf` (although keep-outputs and keep-derivations exists)
<LnL> those are aliases
<rsa> okay, so both versions work
jtojnar has quit [Ping timeout: 252 seconds]
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
phreedom has quit [Client Quit]
phreedom has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
phreedom has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos-dev
jtojnar has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #nixos-dev
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
atu has joined #nixos-dev
goibhniu has joined #nixos-dev
ciil has quit [Quit: Lost terminal]
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
orivej has quit [Ping timeout: 252 seconds]
ciil has joined #nixos-dev
orivej has joined #nixos-dev
<gchristensen> should add those aliases to the docs :)
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
Sigyn has joined #nixos-dev
<gchristensen> ok, did add them to the docs https://github.com/NixOS/nix/pull/2428
<{^_^}> nix#2428 (by grahamc, 2 minutes ago, open): Document Aliases for keep-outputs, keep-derivations
phreedom has quit [Ping timeout: 256 seconds]
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #nixos-dev
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos-dev
orivej has quit [Ping timeout: 272 seconds]
phreedom has joined #nixos-dev
<catern> could we switch bash and bash-interactive, such that "bash" is the interactive version, and "bash-minimal" is the minimal version? it's a major footgun for my users, they keep installing bash and getting confused..
<infinisil> Hold on, so small bugfixes should currently go to 3 branches, master, 18.09, and 18.03?
<gchristensen> infinisil: depending on the nature, yeah
atu is now known as adamt
<infinisil> gchristensen: Okay, so I'll port this one to the other two as well: https://github.com/NixOS/nixpkgs/pull/46555
<{^_^}> #46555 (by danme, 5 days ago, merged): nvidia-x11: Fix vulkan VK_KHR_xcb_surface
<LnL> aren't overlapping releases fun
<infinisil> Wasn't there a guide somewhere about cherry-picking for porting
<samueldr> yes
<LnL> dunno, just git cherry-pick -x
<samueldr> as LnL said
<infinisil> Ah neat
<infinisil> samueldr: So, since you're the PR vs direct commit expert: Is it okay to push cherry-picks directly?
<gchristensen> I thought I fixed all the idms :/
<gchristensen> oh -- 18.03
<samueldr> gchristensen: did you also fix them on ... yeah
<gchristensen> infinisil: please send PRs
<samueldr> infinisil: cherry-picks are easy to identify, so it's not as much an issue... but PRs would be preferred
<infinisil> Phew alright
<infinisil> Ah, well then I can let the user themselves submit the PR's even
<gchristensen> if they send the PR, verify they used the -x
<LnL> gchristensen: maybe ofborg could check that
<gchristensen> how can it know?
<LnL> target_branch ~= /release-*/
<samueldr> that would preclude non-cherry picked fixes... so it should be a big fat warning and not an outright fail
<LnL> oh yeah, just a comment with a warning or something
<samueldr> (e.g. fixes for things that changed on master)
<infinisil> Okay but that original PR from that user was for 18.03
<infinisil> The cherry-pick would be for 18.09 and master
<samueldr> (like those last linux kernel updates, the linux options infra changed enough that backporting wasn't possible)
<LnL> non cherry-picked commits definitively help, but I think the ratio is small enough that posting a warning is fine
<samueldr> I agree: and if the ratio doesn't match with reality, reality will change :)
<LnL> euh help? I mean valid
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
<manveru> gchristensen: you back? :D
<gchristensen> yep :)
<manveru> not much time atm, but will try to get a clean example up tonight
<gchristensen> nice!
<manveru> short version, i use https://github.com/alexanderkjeldaas/nixos-kexec but with this script instead of doit.sh and just use remote-exec to run it https://www.irccloud.com/pastebin/GMBXeBuz/
<manveru> and copy stuff like ssh key via file provisioners
orivej has joined #nixos-dev
<manveru> it's slow due to the nix-build, about 15 minutes on CX11, but seems reliable atm
ma27 has quit [Quit: WeeChat 2.2]
<manveru> anw, back to work :)
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos-dev
clever has joined #nixos-dev
adamt has quit [Ping timeout: 252 seconds]
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
<infinisil> Mic92: Hey, alacritty just got updated to v0.2.0 with scrollback support \o/
<infinisil> Mic92: I see nixpkgs is currently using your fork, do you want to update that yourself? I could alternatively just create a fork myself with the fixes
<Mic92> infinisil: I hope this is the last version we need to use the fork for: nixos-0.2.0
<Mic92> there is a fix for rust, but it is not yet in master
<infinisil> For the git deps?
<Mic92> yes
<infinisil> Where is the fix then?
<Mic92> infinisil: it works on linux, but I don't know if it does on macOS and I have not tester for this platform: https://github.com/NixOS/nixpkgs/pull/46362#issuecomment-420537631
<infinisil> Mic92: Ah sweet, I could test the build on macOS
<infinisil> Mic92: So for darwin you just need to know that the hashes don't change?
<Mic92> infinisil: yes. the build can fail
phreedom_ has joined #nixos-dev
<Mic92> I also have a vagrant macOS vm running, let's see if that works
<Mic92> An account on a native macOS builder would be great.
orivej has joined #nixos-dev
aanderse has joined #nixos-dev
<infinisil> If I ever get a new laptop or don't need the current one anymore I'll probably provide it for builds
phreedom has quit [Ping timeout: 256 seconds]
<aanderse> globin: should i create a new merge request for that php change into the release-18.09 branch?
<globin> aanderse: backported already
<aanderse> globin: thank you!
<infinisil> Goddamnit why does the build on my mac take so long to start
<infinisil> I think it's querying the cache, but that shouldn't take this long :/
<Mic92> infinisil: it builds stdenv first I think
<Mic92> you could rebase to master first.
<infinisil> Mic92: Would that make it not have to build stdenv?
<Mic92> infinisil: because it is currently staging
<Mic92> but the digest of it is a text file generated, this hopefully does not depend on staging.
<infinisil> Yeah, alright I'll merge with master first then
<Mic92> infinisil: but only the commits added in this pr,
<Mic92> otherwise you have the same problem
<Mic92> you can cherry-pick back
<infinisil> Ah darn, merge conflicts
orivej has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos-dev
phreedom_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
<infinisil> Mic92: Um, getting a weird error: https://hastebin.com/uxihohicax.sql
<Mic92> infinisil: ah, this is because the shebang is also a shell script, we should not do this: https://github.com/NixOS/nixpkgs/pull/46362/files#diff-c1cb6c6b94c0fd06a8627df6a8cffc7bR14
<infinisil> Mic92: Want me to comment on the PR?
<infinisil> With this
<Mic92> infinisil: I just did this.
<Mic92> but this definitly helped.
<infinisil> Alright, I'll test it again with the new commit picked
<Mic92> infinisil: can you maybe do this change locally and see if it builds?
<infinisil> (ah, i thought you added a commit, but it was just my branch reference)
<Mic92> infinisil: let python = (python3.withPackages(ps: [ ps.toml ])); in "${python}/bin/python" is the executable we need
orivej has quit [Ping timeout: 252 seconds]
<infinisil> Yeah, or rather
<infinisil> > (python3.withPackages (ps: [ ps.toml ])).interpreter
<{^_^}> "/nix/store/z2yckz2hbb9h62pvvbwzggqwskdgsmnl-python3-3.6.6-env/bin/python3.6m"
<Mic92> yeah
<Mic92> I was looking for this
<infinisil> So I should wrap the .py with wrapProgram?
<Mic92> Not needed for the build, could be handy for debugging.
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 264 seconds]
<infinisil> Mic92: Should I try anything else for that PR?
matthewbauer has joined #nixos-dev
pie_ has joined #nixos-dev
timokau_ has quit [Ping timeout: 252 seconds]
timokau_ has joined #nixos-dev
<ekleog> (triage) needs closing: https://github.com/NixOS/nixpkgs/issues/18640
<{^_^}> #18640 (by chris-martin, 2 years ago, open): Create TLA+ packages
<samueldr> done
<ekleog> thanks! :)
<Mic92> infinisil: already merged
<Mic92> infinisil: if you have some time, it would be also great, if someone could build this on macOS: https://github.com/NixOS/nixpkgs/pull/46647
<{^_^}> #46647 (by symphorien, 3 days ago, open): rustc: 1.27 -> 1.29
<Mic92> this is also staging, so you might want to build on master as well
orivej has joined #nixos-dev
<infinisil> Mic92: I don't seem to have to rebuild very much, only rustc-bootstrap and rustc
<Mic92> ok. then staging seems fine
<infinisil> Yeah, building :)
<Mic92> cool, then we also get rust 1.29 some time
<Mic92> I already switched to rustup to fix rls
matthewbauer has quit [Ping timeout: 250 seconds]
sir_guy_carleton has joined #nixos-dev
flokli has joined #nixos-dev
<Mic92> infinisil: thanks for your effort LnL built it: https://github.com/NixOS/nixpkgs/pull/46647#issuecomment-422170903
<infinisil> ALright :)
<LnL> yeah, forgot to report back
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
<Mic92> Would somebody mind, if nix would be build with meson instead auf autotools?
<andi-> what would the benefit be? It feels like it just requires more (bigger?) dependencies then?
<simpson> Mic92: I imagine that patches are welcome.
<simpson> Mic92: Looks fine to me; all code is terrible.
matthewbauer has joined #nixos-dev
<Dezgeg> and probably better than automake x)
<andi-> Mic92: I see your point :-)
<Mic92> simpson: lol Yeah, building :) /NixOS/nix/commit/c651b7bdc996a18688c5e5dd5dd84eeeb8d3376d
ma27 has joined #nixos-dev
<Mic92> andi-: you can get a python + static compiled ninja on every platform, probably not much worse then autotools.
<simpson> And obviously *this* Python-based build system will be *the* one. Sure, SCons wasn't it, and Waf wasn't it, but Meson, *that's* the right new Python-based build system~
* simpson skeptical of new build systems
<andi-> it's probably nicer to configure but not sure if it is nicer to use in 5y from now.. autotools will surely still be around :-)
* andi- is probably just old and grumpy again and also skeptical like simpson
<Mic92> I am tired of make
<simpson> I'm tired of make too, but my solution was to stop using languages that don't have real modules.
<simpson> I mean, honestly I gave you my best advice already: I imagine that patches are welcome, if you'd care to propose a patch which switches to Meson.
<infinisil> RIIR!
<Mic92> there is a lot of bitrot in nix
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos-dev
<Mic92> that's why I will not rewrite a build system, before getting some opinions
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
<Mic92> simpson: look, real modules: https://mesonbuild.com/Modules.html
<Mic92> and it does not expose python to its users, because then they would to much magic.
<simpson> Mic92: I meant in the language being compiled. C/C++ are too anemic to support such a concept, but it would allow for *actual* per-unit compilation and a more standard build process. We can see hints of this in, say, Go, although that's not to venerate Go.
matthewbauer has quit [Ping timeout: 240 seconds]
<simpson> Or, in a different direction, the builds of languages like Java or Haskell, which admittedly still require a linking process but have figured out how to compile individual modules as units.
<Mic92> simpson: yeah, c/c++ is broken in that sense.
<infinisil> simpson: Have you had a look at snack?
<Mic92> there is a working draft for c++20 ...
<Mic92> but I gave up to learn all keywords the language has.
<simpson> infinisil: No, but very interesting. http://www.speech.kth.se/snack/modex2.html ?
<infinisil> simpson: Haha nah, not that snack, this one: https://github.com/nmattia/snack
<yorick> does nix-build '<nixpkgs>' -A arcanist --check work for anyone?
<yorick> it's in cache somehow
<simpson> infinisil: Ah, interesting.
<yorick> works on nix 2.0.4, fails on nix 2.1.1
<yorick> it works on another machine with 2.1.1. the plot thickens
<infinisil> Impurities!
goibhniu has quit [Ping timeout: 240 seconds]
<makefu> yorick: builds for me (didn't came from cache as i do not strictly track a channel)
<yorick> on the server, it can't find bison. on the workstation, it doesn't bison
<yorick> I think it may be a modification time filesystem difference
<yorick> ok, figured it out
<gchristensen> what was it, yorick?
<yorick> pull-request incoming
<yorick> https://github.com/NixOS/nixpkgs/pull/46812 a `cp -R` in the unpackPhase
<{^_^}> #46812 (by yorickvP, 14 seconds ago, open): arcanist: fix mtime impurity