Sonarpulse has quit [(Ping timeout: 255 seconds)]
Mic92 has quit [(Ping timeout: 255 seconds)]
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined joined #nixos-dev
<mog> domenkozar, any chance you could take a look at https://github.com/NixOS/nix/pull/767
ma27 has joined joined #nixos-dev
ma27 has quit [(Ping timeout: 265 seconds)]
pie_ has joined joined #nixos-dev
goibhniu has joined joined #nixos-dev
simpson has quit [(Ping timeout: 272 seconds)]
goibhniu has quit [(Ping timeout: 256 seconds)]
pie_ has quit [(Quit: Leaving)]
<domenkozar> mog: best to ask niksnut to review
orivej has quit [(Ping timeout: 240 seconds)]
vcunat has joined joined #nixos-dev
goibhniu has joined joined #nixos-dev
pie_ has joined joined #nixos-dev
<pie_> maybe the diversity of subpackagers like pypi2nix, egg2nix, etc for nix can be taken as a positive thing? i.e. nix is suitable as a backend
<pie_> i mean it would still be nice if things didnt inherently break with other package managers but :P
<pie_> / werent inherently inaccessible
cransom has quit [(Ping timeout: 240 seconds)]
cransom has joined joined #nixos-dev
Mic92 has joined joined #nixos-dev
ma27 has joined joined #nixos-dev
__Sander__ has joined joined #nixos-dev
pie_ has quit [(Quit: Leaving)]
ma27 has quit [(Ping timeout: 248 seconds)]
<gchristensen> looks like master is broken
<vcunat> gchristensen: in what way?
<gchristensen> attribute ‘aarch64-linux’ missing, at /home/grahamc/projects/nixpkgs/pkgs/development/tools/electron/default.nix:18:11
<gchristensen> we can't enumerate outputs
<vcunat> let me have a look
<gchristensen> I've got a patch ready
<gchristensen> well, almost ready, I'm just annoyed :P
<vcunat> but borg shows success on that PR
<gchristensen> its from a revert actually
<vcunat> I see
<gchristensen> we need to catch these sooner, I should probably eval every push to nixpkgs and leave a comment on the commit if it breaks it
<gchristensen> also I need to empower people to check their own work, even if the evaluator is down (https://github.com/grahamc/ofborg/issues/17)
<vcunat> yes, these sound as good ideas
pie_ has joined joined #nixos-dev
vcunat has quit [(Ping timeout: 272 seconds)]
vcunat has joined joined #nixos-dev
yegortimoshenko has joined joined #nixos-dev
ma27 has joined joined #nixos-dev
<gchristensen> niche use case, but is there a way to use remote builders but not xfer the result back? :)
<vcunat> gchristensen: do you know --build-host and --target-host in nixos-rebuild?
<gchristensen> I don't...
<gchristensen> but I think I should
<vcunat> > So, if you only specify --target-host both building and activation will take place remotely (and no build artifacts will be copied to the local machine).
<gchristensen> :D
<vcunat> IIRC it's a relatively new feature
<yegortimoshenko> gchristensen: it would be less work to add a new platform in the future if at least one evaluation had `platform = "unknown"` or something to the same effect
<gchristensen> yegortimoshenko: if you check out my "fix" commit, it already makes adding new platforms fairly easy enough, because we can fully evaluate the package on an arch even if it doesn't support it
<vcunat> hmm, I'm not sure if we wouldn't get problems in stdenv already
<yegortimoshenko> gchristensen: sure! what i mean is grahamcofborg doesn't catch other derivations that depend on platform for evaluation
<gchristensen> hmm I'm not sure I understand
<yegortimoshenko> i think there is probably a bunch of packages that don't evaluate, say, on power8-linux
<vcunat> currently you don't have meta.platforms before evaluation of the package
<vcunat> there's WIP but not finished yet https://github.com/NixOS/nixpkgs/pull/22277
<yegortimoshenko> vcunat: i see, but still currently to make grahamcofborg tests pass one can just make sure that their derivation evaluates on all supportedPlatforms
<yegortimoshenko> that makes adding a new platform to supportedPlatforms difficult
<vcunat> yes
<vcunat> we could evaluate on more of them
<yegortimoshenko> solution is to ensure that grahamcofborg evaluates derivation at least once with invalid platform
<yegortimoshenko> like "unknown", or "undefined"
<vcunat> yes, that should be cheaper
<yegortimoshenko> or "grahamcofborg-linux"
<vcunat> except if stdenv doesn't evaluate, you won't even get meta
<vcunat> or anything inside mkDerivation
<vcunat> (thanks to laziness)
<vcunat> so we would probably have to introduce such dummy stdenv... but that might actually have other uses - for platform-neutral stuff, e.g. typically meta
<yegortimoshenko> vcunat: i think it's worthwile, i'll try
<yegortimoshenko> (to evaluate, and then i'll open an issue)
<vcunat> +1
yegortimoshenko has quit [(Remote host closed the connection)]
yegortimoshenko has joined joined #nixos-dev
<Profpatsch> pierron_: lol, I discovered the splitString function, saw the note “NOTE: this function is not performant and should never be used.” and instantly knew it’s something you wrote and use in your parser abomination. :)
<Profpatsch> The blame “checks out” :P
<pierron_> Profpatsch: I don't think I used it in the parser.
<pierron_> Profpatsch: but the Nix builtin I added can be used to make splitString more efficient
pie_ has quit [(Remote host closed the connection)]
pie_ has joined joined #nixos-dev
<pierron_> Profpatsch: the TOML file type did not exist at this time ;)
<vcunat> guessed almost correctly :-)
<Profpatsch> pierron_: When I look at the code: is that n² or n³? oO
<pierron_> Profpatsch: substring are cheap, as they are implemented as dependent strings. However the string comparison does not work on atomized strings, and is as complex as the matched pattern.
<pierron_> Profpatsch: so O(np), if strings were the only perf issue.
<pierron_> Profpatsch: and O(r²) for constructing the output list.
<Profpatsch> Okay; then it may be enough for a quick hack.
<Profpatsch> Or I just fix the generator.
orivej has joined joined #nixos-dev
<pierron_> Profpatsch: maybe adding regexSplit would be better.
pie_ has quit [(Ping timeout: 256 seconds)]
simpson has joined joined #nixos-dev
pie_ has joined joined #nixos-dev
Sonarpulse has joined joined #nixos-dev
<yegortimoshenko> how do i evaluate something eagerly?
<gchristensen> --strict
<yegortimoshenko> gchristensen: thanks!
<yegortimoshenko> gchristensen: does grahamcofborg have an issue tracker or should i file an issue against nixpkgs?
<gchristensen> grahamc/ofborg :)
<yegortimoshenko> :-)
<Sonarpulse> vcunat: master should be merged back into staging, right?
<vcunat> Sonarpulse: it could be
<vcunat> is it important?
<Sonarpulse> vcunat: or did you merge master into staging before the merge of staging into master?
<Sonarpulse> ah yes, nevermind then
<vcunat> I don't think I did that
<vcunat> last merge I see is ~24h ago
<Sonarpulse> vcunat: ah orivej did
<Sonarpulse> well as long as it happens
<vcunat> yes, 7c58e8dfc2b
<Sonarpulse> vcunat: I'm trying to decide if it even matters whether theres one commit that master and staging both pointed to at some point
<vcunat> I don't know any advantage of that
<Sonarpulse> in principle, the refog doesn't matter after the fact wrt computing the most recent common ancester
<vcunat> reflog is just a local thing
<Sonarpulse> xyeah
<peti> Fair warning: the Haskell package set will switch to LTS-10.x soon: https://github.com/NixOS/nixpkgs/pull/32854.
<Sonarpulse> OTOH, I just rebased my big cross pr on your staging merge
<vcunat> and you avoid the risk of a fast-forward merge :-)
<Sonarpulse> both so its up to date with mater
<Sonarpulse> *master
<Sonarpulse> and so I can build it and compare against the master eval, as a kind of no good state
<Sonarpulse> *known good
* Sonarpulse cannot type today it seems
<vcunat> :-) I sometimes merge master exact versions that were evaluated by Hydra to staging, to simplify the comparisons
<Sonarpulse> vcunat: right so I think if master evals that exact merge commit
<Sonarpulse> then we *should* do the fast-forward merge
<Sonarpulse> then ideally we have a single commit in both master and staging that both jobs evaled
<vcunat> Sonarpulse: the problem is that you swap the first-parent history semantics
<vcunat> I find that one useful
<Sonarpulse> vcunat: that's a fair ergonomic
<Sonarpulse> *argument
<Sonarpulse> vcunat: maybe immediate --no-ff merge master into staging
<Sonarpulse> so at least the same tree hash was evaled by both jobs
<Sonarpulse> but the first parent property is still preserved
<vcunat> yes
<vcunat> I use --no-ff this way for some PRs, too
<Sonarpulse> vcunat: cool, that might be a good policy then
<Sonarpulse> I just had to make the merge, so my PR to staging didn't show up with extra commits
<vcunat> yes, that happens :-)
goibhniu has quit [(Ping timeout: 255 seconds)]
<copumpkin> niksnut: any idea if the warning message thing is enough to disqualify it from being a "bugfix" release? :) I'm mostly trying to get stable mac builds of that thing for downstream usage, but if you think it's too risky, I'll lay off
<copumpkin> but when I think gnutar, I don't really think of crazy risky features getting added in small releases
<gchristensen> copumpkin: is there a bug-fix patch we can apply to stable?
<copumpkin> yeah, I suppose. It just seemed easier to bump to 1.30, which includes the bug fix, gets rid of another ad-hoc patch we threw in for a CVE, and fixes a couple of other bugs. It also adds one warning thing, but that seemed pretty harmless to me
__Sander__ has quit [(Quit: Konversation terminated!)]
<Sonarpulse> gchristensen: is grahamcofborg no longer auto?
<gchristensen> Sonarpulse: huh?
<gchristensen> it always auto-evals
<Sonarpulse> gchristensen: https://github.com/NixOS/nixpkgs/pull/26805 maybe just takes time before anything appears here?
<gchristensen> https://events.nix.gsc.io/stats.php -- there are 7 in queue
<gchristensen> I'll start a second evaluator
<niksnut> copumpkin: I'm not strongly opposed but I'd prefer putting it in staging-17.09 so it can be folded into other mass-rebuild changes
<niksnut> otherwise inflicting a full rebuild/redownload on everybody seems a bit excessive
<copumpkin> hah I initially submitted it to staging-17.09 but folks told me that didn't work
<niksnut> why not?
<copumpkin> so I repointed the PR to release-17.09
<copumpkin> not sure!
<copumpkin> anyway, I can send it anyhwere
<Sonarpulse> gchristensen: thanks!
<vcunat> niksnut: the telling was that the Hydra job was disabled
<vcunat> (mass rebuilds for 17.09 seem rather rare after the release point anyway)
<copumpkin> how do we feel about mass darwin rebuilds on 17.09? when I backport the sandbox things to 17.09 I'll also need to cause some mass rebuilds there
<mog> niksnut, can you review https://github.com/NixOS/nix/pull/767
<gchristensen> Sonarpulse: looks like staging doesn't eval, maybe merge master in
<copumpkin> niksnut: so I can point the PR back at staging-17.09 but I think the job would need to be reactivated, and the branch probably needs a merge from release-17.09 because it seems kinda forgotten
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
orivej has quit [(Read error: Connection reset by peer)]
ma27 has quit [(Ping timeout: 240 seconds)]
orivej has joined joined #nixos-dev
<gchristensen> Sonarpulse: whatever you merged to staging wasn't the latest master P
<gchristensen> :P
<vcunat> copumpkin: I don't expect 17.09 makes much difference between darwin and linux wrt. mass rebuilds
<vcunat> except that Hydra is weaker for darwin, but I don't think that's a major difference
<vcunat> (it only slows the process down)
<copumpkin> yeah, I guess I'm just saying that if we want mass rebuilds to go to staging for 17.09, I'll need staging-17.09 turned back on because I'll be making a few mass rebuilds for darwin
<gchristensen> iirc you can trigger a one-off eval for a disabled jobset
<copumpkin> even if we ignore the whole gnutar thing
ma27 has joined joined #nixos-dev
<copumpkin> ah
orivej_ has joined joined #nixos-dev
orivej has quit [(Ping timeout: 255 seconds)]
<Sonarpulse> gchristensen: oh I know
<gchristensen> oh ok
<Sonarpulse> it was the commit of staging being merged into mastr
<Sonarpulse> talking to vcunat above it would be convenient to have a new rule that we always did:
<Sonarpulse> git checkout master; git merge staging; git checkout staging; git merge --no-ff master
<gchristensen> sure
ma27 has quit [(Ping timeout: 272 seconds)]
ma27 has joined joined #nixos-dev
pie_ has quit [(Ping timeout: 248 seconds)]
<Sonarpulse> niksnut: https://github.com/NixOS/nixpkgs/pull/32827 seen? it's tiny
<Sonarpulse> just CODEOWNERS for a few things
__Sander__ has joined joined #nixos-dev
* bgamari just booted a cross-compiled NixOS!
<gchristensen> no way!
<bgamari> all the way through systemd to a shell
<Sonarpulse> bgamari: !!!!! :)
<bgamari> it took no shortage of hacks
<bgamari> but at least it's a start
<Sonarpulse> yay!!
<bgamari> there are clearly still a few issues
<bgamari> sshd failed to start
<Sonarpulse> weird, but progress!
<bgamari> for some reason pkgs.stdenv.shell is the build environment's bash
pie_ has joined joined #nixos-dev
<bgamari> is there any way to get access to the "pkgs" attribute from outside of a nixos module?
<Sonarpulse> bgamari: inherit it in some module somewhere? :D
<bgamari> e.g. if open a nixos/toplevel.nix expression in the repl
<bgamari> fair enough
<Sonarpulse> lolz I don't even know about nixos/toplevel.nix
<bgamari> Sonarpulse, inheriting is a good strategy
<bgamari> Sonarpulse, I think stdenv.shell is wrong
yegortimoshenko has joined joined #nixos-dev
<Sonarpulse> bgamari: hmm I did some stuff on stdenv.shell once I thought?
<Sonarpulse> bgamari: but yeah it hasn't seen much love
<Sonarpulse> it's the build time shell
<bgamari> Sonarpulse, any idea where?
<Sonarpulse> is nixos using it as runtime?
<bgamari> yep
<bgamari> or rather, I'm not sure that I understand your question
<Sonarpulse> bgamari: looking for commit
<Sonarpulse> nothing to do with nixos though
ciil_ has quit [(Quit: leaving)]
<bgamari> right
ciil has joined joined #nixos-dev
<bgamari> and nothing to do with stdenv.shell, no?
<yegortimoshenko> how do i trigger grahamcofborg evaluation on a really old pull request?
* bgamari has
<bgamari> pkgs.stdenv.hostPlatform.arch="armv7-a"
<yegortimoshenko> gchristensen: ^
<bgamari> and pkgs.stdenv.cc = «derivation /nix/store/pqdky3l6ffcjjna3iyb9kydybk9xkp8n-armv7l-unknown-linux-gnueabihf-gcc-cross-wrapper-6.4.0-armv7l-unknown-linux-gnueabihf-stage-final.drv»
<gchristensen> yegortimoshenko: ask someone with access to ask it to eval, and then later on I can grant you access to call it yourself
<bgamari> yet pkgs.stdenv.shell = "/nix/store/lvkar6sxn9jk8lnska4w2gh01vkm5azx-bash-4.4-p12/bin/bash"
<bgamari> Sonarpulse, ^
<yegortimoshenko> gchristensen: could you tell it to eval? https://github.com/NixOS/nixpkgs/pull/30211
<Sonarpulse> bgamari: yeah stdenv.shell is for the build platform
<Sonarpulse> rule in my head is
<bgamari> I see
<bgamari> alright
<yegortimoshenko> (i've requested access, thanks :-)
<Sonarpulse> isDrv stdenv.x =implies=> stdenv.x.stdenv.hostPlatform == stdenv.buildPlatofrm
<bgamari> then there will some rejigging necessary
<bgamari> in, e.g., systemd/default.nix
<Sonarpulse> yeah makes sense
<bgamari> or rather nixos/modules/system/boot/systemd.nix
<Sonarpulse> oh ok
<Sonarpulse> bgamari: yeah all stdenv.shell in nixos is highly suspect
* bgamari just uses pkgs.bash for now
<Sonarpulse> bgamari: targetPackages.stdenv.shell :D
<Sonarpulse> ugly, but that's what I used for binutils/cctools
<Sonarpulse> target.stdenv.cc.binutils
<Sonarpulse> * target.stdenv.cc.bintools
<Sonarpulse> * targetPackages.stdenv.cc.bintools
<Sonarpulse> rather than just binutils or darwin.binutils
<Sonarpulse> bgamari: targetPackages.stdenv during cross is a lie that lives in pkgs/stdenv/booter.nix
<bgamari> Sonarpulse, how does one get targetPackages from within a module?
<Sonarpulse> bgamari: pkgs.targetPackages
<bgamari> hmm, it seems that targetPackages.stdenv doesn't have a shell attribute
<Sonarpulse> bgamari: yeah cause it's fake and I didn't make one yet
<Sonarpulse> but you can put it in pkgs/stdenv/booter.nix at the bottom
<Sonarpulse> just make it pkgs.bash for now
<bgamari> yep
<bgamari> I should note though that my nixos image is a bit of a hack
<bgamari> it occassionally runs target executables via qemu
<bgamari> via binfmt emulation
<bgamari> but nevertheless, it's something
yegortimoshenko has quit [(Ping timeout: 256 seconds)]
<copumpkin> bgamari: cross-compiled from what to what?
<bgamari> copumpkin, amd64 to armv7
<copumpkin> nice :)
ma27 has quit [(Ping timeout: 240 seconds)]
sander has joined joined #nixos-dev
sander has quit [(Client Quit)]
sander has joined joined #nixos-dev
__Sander__ has quit [(Ping timeout: 248 seconds)]
sander has quit [(Client Quit)]
__Sander__ has joined joined #nixos-dev
ma27 has joined joined #nixos-dev
vcunat has quit [(Quit: Leaving.)]
ma27 has quit [(Ping timeout: 272 seconds)]
__Sander__ has quit [(Quit: Konversation terminated!)]
sander has joined joined #nixos-dev
sander has quit [(Client Quit)]
<bgamari> Has anyone encountered python failing with " ValueError: ZIP does not support timestamps before 1980" while building a package before?
<bgamari> it seems to be due to the python2.7-hypothesis package
<makefu> bgamari: may be related to https://nixos.org/nixpkgs/manual/#python-setup.py-bdist_wheel-cannot-create-.whl
<bgamari> yes, it seems like it
orivej_ has quit [(Ping timeout: 265 seconds)]
mbrgm has joined joined #nixos-dev
orivej has joined joined #nixos-dev