| 18 Dec 2025 |
kloenk | yeah fair. just that I back then implemented it for flakes and specificly gitiles for something that is not that much of use anymore either ways | 11:34:28 |
kloenk | done | 11:34:53 |
kloenk | sorry, had the wrong one open and noticed to late, also tagged accidentaly on the gittiles CL (which is still abadoned) | 11:35:27 |
| @e-flex:matrix.org left the room. | 11:39:14 |
helle (just a stray cat girl) | mmm, quick read via the docs,
if lib.fetchzip -> recursiveHash = true; (default) nixpkgs may be able to just shortcut to evaluating lib.fetchzip as builtins.fetchTarball { stripRoot = false; ... } unless some other special options are set (unless it supports some formats in funny ways that libarchive doesn't), but this depends on the hashes obviously ending up the same still, which I think is true | 11:47:27 |
emily | the builtins.* fetchers block eval so are not used by Nixpkgs, unless I'm misunderstanding what you mean | 11:56:50 |
helle (just a stray cat girl) | ah, okay, yeah, that is a valid reason | 11:57:11 |
helle (just a stray cat girl) | (for now) | 11:57:22 |
helle (just a stray cat girl) | (grmbls at the length of her todo list) | 11:57:36 |
helle (just a stray cat girl) | though there are still just cases where you want to not have to drag in nixpkgs to get that simple enough feature | 11:57:59 |
emily | well, they're just very different things in general | 12:12:43 |
emily | e.g. builtin fetcher can't be remote built | 12:12:49 |
helle (just a stray cat girl) | yeah | 12:13:15 |
helle (just a stray cat girl) | I mean there are still reasons to remove this limitation though | 12:13:25 |
helle (just a stray cat girl) | it is silly and very hardcode brained | 12:13:32 |
helle (just a stray cat girl) | and if you aren't using nixpkgs for various reasons, being able to use libarchive to handle well, any archive extraction within nix itself saves a bunch of extra steps and handling | 12:17:19 |
KFears (they/them) | Here's my favorite bootstrapping-adjacent back to date: https://git.auxolotl.org/auxolotl/foundation/src/commit/f7d7ed8f507d30e40a1e543207b332a46336c7b9/src/fetchTarball.nix | 12:22:12 |
KFears (they/them) | (builtins are very silly) | 12:22:35 |
KFears (they/them) | * Here's my favorite bootstrapping-adjacent hack to date: https://git.auxolotl.org/auxolotl/foundation/src/commit/f7d7ed8f507d30e40a1e543207b332a46336c7b9/src/fetchTarball.nix | 12:23:24 |
helle (just a stray cat girl) | yeah, we need to fix and document a bunch of the builtins..... | 12:23:26 |
0x4fbb09 it/its ⛯✇ΘΔ | oh my god i forgot about that | 12:23:38 |
0x4fbb09 it/its ⛯✇ΘΔ | that's so funny | 12:23:42 |
helle (just a stray cat girl) | I do like the idea of somehow making libfetchers non-blocking, but uh, rearchitecturing that is going to be fun | 12:24:12 |
KFears (they/them) | In reply to @helle:tacobelllabs.net yeah, we need to fix and document a bunch of the builtins..... I have an open (and unfinished) CL on builtin builders, want to take a look? | 12:24:13 |
helle (just a stray cat girl) | not at the moment, spoons low, discussing things and reading docs is doable, reading code requires keeping too much weird context | 12:24:54 |
helle (just a stray cat girl) | yes, me reading libfetchers source was a little silly | 12:25:36 |
helle (just a stray cat girl) | I've done sillier fixes on Lix while in a bad state honestly, but uh | 12:26:33 |
helle (just a stray cat girl) | trivial doc fixes because I like reading how users interact with stuff, now those I can make in nearly any state | 12:39:00 |
kloenk | the let me see right now as sitting is good right now to eehh devshell needs so long pipeline :p | 14:09:02 |
Rutile (Commentator2.0) feel free to ping | what exactly are these two lines testing? (i esp don't get the first one)
nix-instantiate --strict --eval -E "!((import (fetchTree { type = \"tarball\"; url = \"file://$tarball\"; narHash = \"$hash\"; })) ? submodules)" >&2
nix-instantiate --strict --eval -E "!((import (fetchTree { type = \"tarball\"; url = \"file://$tarball\"; narHash = \"$hash\"; })) ? submodules)" 2>&1 | grep 'true'
| 17:15:28 |