!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

229 Members
74 Servers

Load older messages


SenderMessageTime
27 Oct 2024
@artturin:matrix.orgArtturin Tristan Ross: More patches plox? 23:14:51
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/unzip/default.nix23:15:12
@rosscomputerguy:matrix.orgTristan Ross
In reply to @artturin:matrix.org
Tristan Ross: More patches plox?
If they're needed, sure
23:16:57
@emilazy:matrix.orgemilyit's not clear to me that we have those zipbomb fixes?23:17:51
@artturin:matrix.orgArtturinWeb page last updated 200923:18:04
@rosscomputerguy:matrix.orgTristan RossIdk either 23:18:05
@rosscomputerguy:matrix.orgTristan RossI'm just making sure unzip works lol23:18:15
@rosscomputerguy:matrix.orgTristan RossIt didn't have a maintainer before in like forever 23:18:36
@rosscomputerguy:matrix.orgTristan RossWas thinking of eventually doing some nice changes like final attrs and move to by name23:20:41
@emilazy:matrix.orgemily how do people feel about setting ulimit -n 1024 in setup.sh? it's the default for Linux and it would be helpful for Darwin. 23:20:51
@emilazy:matrix.orgemilynot sure if that's the right place for it.23:20:57
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/issues/17365723:23:46
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nix/issues/655723:24:04
@emilazy:matrix.orgemilyhm, so the ulimits are not inherited by child processes in general on Darwin? or just the launchd setting doesn't propagate to children somehow?23:25:44
@artturin:matrix.orgArtturin Setting the ulimit higher in preCheck works so the first shouldn't be true 23:27:12
@emilazy:matrix.orgemilyright.23:27:18
@emilazy:matrix.orgemily it seems like it would be more expedient to add this to stdenv for now than to spend ages trying to figure out why it's not working in Nix and how it should handle it and getting a PR in to do that. 23:27:53
@emilazy:matrix.orgemilywhat's the default inside the Nix sandbox on Linux? is there systemd stuff to up it from 1024 there?23:28:09
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/e4735dbdda8288aef24141f3ae8848a14f06fe08/nixos/modules/services/system/nix-daemon.nix#L200 104857623:31:12
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nix/blob/master/misc/systemd/nix-daemon.service.in23:31:44
@emilazy:matrix.orgemily sadly kern.maxfilesperproc is 122880 by default on Darwin 😅 23:32:15
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nix/commit/2320a2f93e0aa61e8d45dcfb3fb536361a1fcb6f23:32:28
@emilazy:matrix.orgemilyso we could only go that high23:32:30
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
https://github.com/NixOS/nix/commit/2320a2f93e0aa61e8d45dcfb3fb536361a1fcb6f
yeah so I doubt that launchd thing works.
23:34:17
@emilazy:matrix.orgemilysince it's above the system-wide per-process limit.23:34:22
@emilazy:matrix.orgemilyin fact maybe the whole Nix bug is because that setting is being ignored for being too high? unless it was happening when it was 4096 too23:34:39
@artturin:matrix.orgArtturinThere's no numbers for the old error messages so no way to know23:35:42
@emilazy:matrix.orgemilyright23:36:15
@artturin:matrix.orgArtturin lovesegfault: https://github.com/NixOS/nix/pull/6645#issuecomment-1230341511 23:37:01
@emilazy:matrix.orgemily well, it seems reasonable to set it to 4096 or 122880 in setup.sh. I don't know what the potential overheads of raising the limit are on Darwin, but I'd be surprised if they're high. 23:37:04

Show newer messages


Back to Room ListRoom Version: 9