Nix Hackers | 963 Members | |
| For people hacking on the Nix package manager itself | 203 Servers |
| Sender | Message | Time |
|---|---|---|
| 27 Sep 2024 | ||
| So it looks like the installer itself ensures, there is a certificate: https://github.com/NixOS/nix/blob/f8bd7e7e5c9686b2fed42c2ee9735fc61a28233c/scripts/install-multi-user.sh#L943 | 10:37:50 | |
| 14:38:09 | ||
| 14:38:32 | ||
| 16:27:18 | ||
| Mic92 https://github.com/NixOS/nix/pull/11603 is not quite the right solution to the problem i described nix successfully finds a CA bundle (the cacert one); but trying to use it inside builtin:fetchurl fails because the sandbox doesn't allow access to the CA certificate file | 16:31:26 | |
you can replicate this on nixos by e.g. doing NIX_SSL_CERT_FILE=$(nix-build '<nixpkgs>' -A cacert)/etc/ssl/certs/ca-bundle.crt nix-build --store $(mktemp -d) -E 'import <nix/fetchurl.nix> { url = https://google.com; }' | 16:33:33 | |
| i was just using openSUSE as an example of it being broken out of the box on some systems now | 16:36:26 | |
| 17:53:52 | ||
| 28 Sep 2024 | ||
| Redacted or Malformed Event | 07:36:35 | |
| are you on linux? | 07:38:45 | |
| on macOS, builtin:fetchurl isn't sandboxed | 07:38:55 | |
| I am facing this issue in a git worktree (not a shallow clone)
it is working with | 11:10:01 | |
| while in a real shallow clone, it works fine
| 11:23:10 | |
| loudgolem: are you sure shallow clones work with nix 2.18? I think you need a newer nix version. | 14:27:14 | |
| yeah my bad, in the second one using detsys nix | 14:27:51 | |
| so with nix 2.18 worktrees are working as intended? | 14:28:44 | |
| * so with nix 2.18 with git worktrees it is working as intended? | 14:29:06 | |
| I don't know | 14:31:15 | |
| https://github.com/NixOS/nix/pull/11610 | 15:10:58 | |
| I didn't had the certificate verification patch in my fork. After that I was able to reproduce the tls error | 15:11:57 | |
| 29 Sep 2024 | ||
| 05:04:25 | ||
| 14:06:26 | ||
| 14:07:23 | ||
In reply to @trofi:matrix.orgEnded up being a compiler bug: https://gcc.gnu.org/PR116880 | 18:23:20 | |
| 30 Sep 2024 | ||
Mic92 btw you may want to remove the n-o-m output on https://github.com/NixOS/nix/pull/11610/commits/c1ecf0bee973e620c9282bd71ddf1a5710968249 (and point directly to 37b22dae04f2da214e6b9bef3427e134280642ca instead of the merge commit?) | 22:57:37 | |
| 1 Oct 2024 | ||
| I don't know what a n-o-m is | 01:31:13 | |
| Need more characters | 01:31:30 | |
| Ah nix-output-monitor | 01:35:00 | |
| I will change it directly to the commit, but having the command that reproduces the error still seems useful to me. | 01:46:00 | |
In reply to @joerg:thalheim.ioright, i just meant the spurious nix-output-monitor output, as it's caused by running with a non-standard store path | 02:18:18 | |