!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

218 Members
69 Servers

Load older messages


SenderMessageTime
28 Oct 2024
@emilazy:matrix.orgemilyto check if too-high values are getting capped, or?00:12:44
@artturin:matrix.orgArtturinIf setting it above the limit is interpreted as 1 or something00:13:21
@artturin:matrix.orgArtturinwell it shouldn't be 1 because then all builds would fail 00:13:43
@artturin:matrix.orgArtturinhmm00:13:46
@artturin:matrix.orgArtturin How does ulimit for you show the number above the limit 00:14:10
@paparodeo:matrix.org@paparodeo:matrix.org
nb -E '(import <nixpkgs>{}).runCommand "foo" {} "ulimit -n"'  
this derivation will be built:
  /nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv
building '/nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv'...
1048576
00:14:28
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
How does ulimit for you show the number above the limit
so ulimit -n 122881 actually works on macOS 15, I guess it changed since 10.12. and it's reported as 122881. but presumably capped as reno described seeing
00:15:14
@emilazy:matrix.orgemily
In reply to @paparodeo:matrix.org
nb -E '(import <nixpkgs>{}).runCommand "foo" {} "ulimit -n"'  
this derivation will be built:
  /nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv
building '/nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv'...
1048576
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
00:15:56
@artturin:matrix.orgArtturinI didn't really look in to it or monitor it00:16:27
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
it never failed for me.
00:16:31
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
* it never failed for me locally
00:16:43
@paparodeo:matrix.org@paparodeo:matrix.orgI had also assumed that the limit was 25600:16:56
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de left the room.00:20:05
@emilazy:matrix.orgemily the good news is that the Go compiler derivation runs ulimit -a. 00:20:06
@emilazy:matrix.orgemilyhttps://hydra.nixos.org/build/274250874/nixlog/100:20:08
@emilazy:matrix.orgemilyhttps://hydra.nixos.org/build/274236521/nixlog/100:20:12
@emilazy:matrix.orgemilyit's a Hydra problem.00:20:14
@emilazy:matrix.orgemilywe could fix it in stdenv still, but it seems like the wrong place if actually the daemon stuff works00:20:55
@emilazy:matrix.orgemily so → #infra:nixos.org 00:21:00
31 Oct 2024
@frontear:matrix.orgfrontear joined the room.04:24:00
5 Nov 2024
@p14:matrix.orgp14

I was hoping replaceStdenv would act in a way to replace the stdenv; but not of buildPackages. What I see is that cmake appears to be built with my replacement stdenv, which is not quite what I expected. My next gambit was to use crossSystem but if I have localSystem == crossSystem, then buildPackages == pkgs and the cross machinery doesn’t kick in.

My next gambit was to use stdenvStages but it looks like replaceStdenv is already implemented in exactly the way I was thinking to add a build stage.

I would like a way to construct a package set with a custom compiler but to keep buildPackages as a standard set of packages. Is that doable somehow?

14:18:45
@artturin:matrix.orgArtturin
In reply to @p14:matrix.org

I was hoping replaceStdenv would act in a way to replace the stdenv; but not of buildPackages. What I see is that cmake appears to be built with my replacement stdenv, which is not quite what I expected. My next gambit was to use crossSystem but if I have localSystem == crossSystem, then buildPackages == pkgs and the cross machinery doesn’t kick in.

My next gambit was to use stdenvStages but it looks like replaceStdenv is already implemented in exactly the way I was thinking to add a build stage.

I would like a way to construct a package set with a custom compiler but to keep buildPackages as a standard set of packages. Is that doable somehow?

replaceCrossStdenv
14:22:42
@artturin:matrix.orgArtturin😄14:22:52
@p14:matrix.orgp14I tried using replaceCrossStdenv but as I tried to say above, it does not take effect when localsystem is crosssystem14:23:30
@p14:matrix.orgp14So is there a way to use the cross system machinery when targeting local?14:23:41
@p14:matrix.orgp14Ha. I just needed to make the systems not equal. So adding crossSystem.custom = true seems to be enough to trigger it. Maybe this will work! The rebuilt set of packages looks promising.14:27:14
@p14:matrix.orgp14Annoyingly it looks like it is rebuilding gcc.14:27:41
@p14:matrix.orgp14Right, looks like because the compiler package name gets annotated with the cross triple, even though it is redundant in this case.14:28:59
@p14:matrix.orgp14Of course I can fix this up by making replaceCrossStdenv use the buildPackages compiler. Nice! Looks like I have what I want now…14:30:43
@p14:matrix.orgp14Found a case where it borks, firefox refuses to eval with unsupported platforms in wasilibc, because it has meta platforms = wasm*. Odd. The non-cross version is fine as expected.14:38:00

Show newer messages


Back to Room ListRoom Version: 9