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
<gchristensen> I hope each and every one of these can be aliases
eadwu has joined #nixos-dev
<gchristensen> thanks to LnL, `@grahamcofborg test` works again! however, all the builders need to be updated, which can be slow sometimes
<LnL> yay, I didn't break everything again :D
eadwu has quit [Ping timeout: 268 seconds]
eadwu has joined #nixos-dev
orivej has joined #nixos-dev
Lingjian has joined #nixos-dev
eadwu has quit [Ping timeout: 268 seconds]
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
Lingjian has quit [Ping timeout: 252 seconds]
pie___ has joined #nixos-dev
pie__ has quit [Ping timeout: 268 seconds]
<thoughtpolice> One of those days where you have to push an instant revert :|
<domenkozar> any last items for tomorrow? https://github.com/NixOS/nixos-weekly/pull/74
<{^_^}> nixos-weekly#74 (by domenkozar, 3 weeks ago, open): Call for Content: 2018/15
<Profpatsch> lol Synthetica
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #nixos-dev
init_6 has joined #nixos-dev
init_6_ has joined #nixos-dev
init_6 has quit [Ping timeout: 268 seconds]
init_6_ is now known as init_6
Jackneilll has joined #nixos-dev
Jackneill has quit [Read error: Connection reset by peer]
init_6 has quit []
symphorien has joined #nixos-dev
orivej has quit [Ping timeout: 250 seconds]
<Profpatsch> Ericson2314: Hm, how can stdenv.cc ever become "/dev/null"?
<Profpatsch> I got an evaluation error because it’s not an attribute set and you seem to be doing some checks on "/dev/null" in cc-wrapper.
<Profpatsch> That looks highly dubious …
<Profpatsch> if buildPackages.stdenv.cc or null != null && buildPackages.stdenv.cc != "/dev/null"
<Profpatsch> Oh, I see.
<Profpatsch> WTF darwin: cc = if isNull last then "/dev/null" else import ../../build-support/cc-wrapper {
<Profpatsch> This seems to seep through every layer.
<Ericson2314> Profpatsch: ah I had forgotten myself. Yeah stupid darwin shit for sure
<Profpatsch> Ericson2314: Hm, what to do about that?
<Profpatsch> It happens on checkMeta when running ofborg.
<Profpatsch> I don’t know why exactly though.
<gchristensen> link?
<gchristensen> might not be able to help, but I'll take a brief look
<gchristensen> link to the PR?
<{^_^}> #53988 (by NinjaTrappeur, 2 hours ago, open): bazel: fix python stub paths
<Profpatsch> gchristensen: Oh, the meta check is failing for derivations I guess?
<Ericson2314> Profpatsch: remove it on staging I suppose
<Ericson2314> `stdenv.cc == null` seems fine in most cases
<gchristensen> weird
<Profpatsch> It’s too strict in customization.nix
<Profpatsch> It recurses into the outputs.
<gchristensen> my understanding is meta.tests never going to work due to Nix not allowing derivations in meta
<Ericson2314> Sorry I meant `=` not `==`
<Profpatsch> ekleog: Was tests.meta the last word on this? Or did we change to passthru.tests?
orivej has joined #nixos-dev
tilpner has joined #nixos-dev
<ekleog> Profpatsch: currently, change to passthru.tests
<ekleog> I'd love it to become meta.tests, but nix doesn't allow derivations in meta, as stated gchristensen
<ekleog> maybe someday, it should be easy enough to migrate from passthru.tests to meta.tests when that happens
<Profpatsch> ekleog: Hm, okay. But the checks are remaining in check-meta.nix, so I was confused and thought it worked.
<{^_^}> nix#2532 (by Ekleog, 9 weeks ago, open): Allow derivations in `meta`
<gchristensen> probably should delete it from check-meta.nix then, since it is invalid
<ekleog> oh that's my mistake, forgot to take them out :/
<Profpatsch> ekleog: Again I’m tempted to push https://github.com/Profpatsch/nixperiments/blob/master/package-tests/default.nix and just use that.
<Profpatsch> (as has been the plan for at least a year, no idea why I didn’t push it until now.
<ekleog> (well, at the same time I was kind of hopeful #2532 would change nix's behavior, but given the absence of feedback I'm less and less hopeful)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/2532 (by jwiegley, 4 years ago, merged): Get glib, gtk+, harfbuzz and pango working on Darwin
<Profpatsch> lol, 4 years ago?
<ekleog> nix#2532 *
<{^_^}> https://github.com/NixOS/nix/issues/2532 (by Ekleog, 9 weeks ago, open): Allow derivations in `meta`
Jackneill has joined #nixos-dev
<Profpatsch> Oh, it’s repyling to #1
<Profpatsch> Except probably not to single-digit numbers :) #1234
<{^_^}> https://github.com/NixOS/nixpkgs/pull/1234 (by lovek323, 5 years ago, merged): mpd: update to latest version
<ekleog> Profpatsch: your link appears orthogonal to passthru.tests, do I read correctly? it's a way to force running tests, while passthru.tests is a way fora package to declare relevant tests
<Profpatsch> ekleog: In that case I’d just add add the test as dependency, so bazel doesn’t build when the test derivation fails.
<Profpatsch> That way you don’t need a separate “leaf” attribute that you need to call manually.
<ekleog> ideally the file you linked would “default” to taking the tests from `drv.passthru.tests` (likely with another function name unless you want to play with __functor to make default arguments)
<Profpatsch> gchristensen: What’s your take on teaching ofborg to build passthru.test (after sanity-checking the types)?
<gchristensen> seems it should
<gchristensen> but it is a bit complicated, because no smarts happen until it reaches a builder -- and then a builder can only do one build
<gchristensen> it'd be good to change how ofborg's building is distributed for something like that (I've wanted to do this for some time now, anyway)
orivej has quit [Ping timeout: 268 seconds]
<ekleog> wouldn't it work to just change nix-build'ing `foobar` into nix-build'ing `[ foobar ] ++ if foobar.passthru.tests or false then attrValues foobar.passthru.tests else []` ?
* ekleog hasn't dived into ofborg's code for way too long, though, so…
<gchristensen> maybe yeah
orivej has joined #nixos-dev
<Profpatsch> It’s not foobar.passthru.tests, but foobar.tests.
<Profpatsch> passthru is folded into the derivation attributes.
orivej has quit [Ping timeout: 272 seconds]
boredom101 has joined #nixos-dev
<gchristensen> nice
boredom101 has quit [Ping timeout: 256 seconds]
<yl[m]> I ran into this again today: https://github.com/NixOS/nixops/issues/908
<{^_^}> nixops#908 (by mickours, 43 weeks ago, open): Virtualbox deploy failed because of VirtualBox Guest Services failure
<yl[m]> are we still using NixOS 16 for the base image for Virtualbox?
orivej has joined #nixos-dev
<timokau[m]> Profpatsch: is there already a PR for withTests?
<timokau[m]> I'd leave out `drvSeq` (or replace it with `drvSeqL`), seems redundant to me
MP2E has joined #nixos-dev
<MP2E> Hey there, so Discord for Linux just had a new update, which means the old version we have packages in release-18.09 no longer works. Given that this is a simple version bump, should I backport to the release-18.09 branch or make a PR for it first?
<MP2E> (just fixed it in master)
<gchristensen> safest to PR it
<MP2E> will do!
<andi-> Running the installer tests with the `driver` attribute is not supported? Fails to find nixpkgs it seems :/
<Profpatsch> timokau[m]: lolnope.
<Profpatsch> Maybe tomorrow.
<Profpatsch> I’d not leave it out.
<Profpatsch> Because it’s the true basic combinator. drvSeqL is just an optimization.
<timokau[m]> Profpatsch: but its the other way around, `drvSeq` is implemented in terms of `drvSeqL`
<timokau[m]> I don't see any issue in just adding braces around single items
<timokau[m]> (I'm having the same pet-peeve with `lib.optional` vs `lib.optionals`)
<timokau[m]> Profpatsch: please CC me if you do end up making a PR
<Profpatsch> timokau[m]: It’s only the other way around because it’s more efficient.
<timokau[m]> Profpatsch: Well its a nitpick. But what is the actual use-case to have the single-test version?
<Profpatsch> I think we are talking in circles. :)
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos-dev
<timokau[m]> That may be true :)
eadwu has joined #nixos-dev
<domenkozar> error: syntax error, unexpected $end, at /nix/store/vhj9jx4hdd27arrcm4wz9zmysarl84cn-env-manifest.nix:1:1
<domenkozar> anyone seen this before
<LnL> is that a nix-env manifest?
<domenkozar> yeah
<{^_^}> domenkozar/hie-nix#41 (by wpoosanguansit, 23 hours ago, open): Error Installing.
<clever> domenkozar: nix-store --verify-path /nix/store/vhj9jx4hdd27arrcm4wz9zmysarl84cn-env-manifest.nix
<clever> domenkozar: ive seen this happen before, due to an improper shutdown after `nix-env -i`, and the only fix is `nix-env --rollback` i believe
<domenkozar> sounds like atomicity is a lie? :)
<clever> ext4 only protects the metadata, but not the data itself
<clever> and files can magically truncate after an improper shutdown
<clever> when using the default mount flags
<domenkozar> yeah I remember that one :D
worldofpeace has joined #nixos-dev
eadwu has quit [Ping timeout: 252 seconds]
boredom101 has joined #nixos-dev