!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

414 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.137 Servers

Load older messages


SenderMessageTime
18 Dec 2025
@kloenk:kloenk.eukloenk 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:kloenk.eukloenk done 11:34:53
@kloenk:kloenk.eukloenksorry, 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@e-flex:matrix.org left the room.11:39:14
@helle:tacobelllabs.nethelle (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
@emilazy:matrix.orgemily the builtins.* fetchers block eval so are not used by Nixpkgs, unless I'm misunderstanding what you mean 11:56:50
@helle:tacobelllabs.nethelle (just a stray cat girl)ah, okay, yeah, that is a valid reason11:57:11
@helle:tacobelllabs.nethelle (just a stray cat girl)(for now)11:57:22
@helle:tacobelllabs.nethelle (just a stray cat girl) (grmbls at the length of her todo list) 11:57:36
@helle:tacobelllabs.nethelle (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 feature11:57:59
@emilazy:matrix.orgemilywell, they're just very different things in general12:12:43
@emilazy:matrix.orgemilye.g. builtin fetcher can't be remote built12:12:49
@helle:tacobelllabs.nethelle (just a stray cat girl)yeah12:13:15
@helle:tacobelllabs.nethelle (just a stray cat girl)I mean there are still reasons to remove this limitation though12:13:25
@helle:tacobelllabs.nethelle (just a stray cat girl)it is silly and very hardcode brained12:13:32
@helle:tacobelllabs.nethelle (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 handling12:17:19
@kfears:matrix.orgKFears (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:matrix.orgKFears (they/them)(builtins are very silly)12:22:35
@kfears:matrix.orgKFears (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:tacobelllabs.nethelle (just a stray cat girl)yeah, we need to fix and document a bunch of the builtins.....12:23:26
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔoh my god i forgot about that12:23:38
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔthat's so funny12:23:42
@helle:tacobelllabs.nethelle (just a stray cat girl)I do like the idea of somehow making libfetchers non-blocking, but uh, rearchitecturing that is going to be fun12:24:12
@kfears:matrix.orgKFears (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:tacobelllabs.nethelle (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 context12:24:54
@helle:tacobelllabs.nethelle (just a stray cat girl)yes, me reading libfetchers source was a little silly12:25:36
@helle:tacobelllabs.nethelle (just a stray cat girl)I've done sillier fixes on Lix while in a bad state honestly, but uh12:26:33
@helle:tacobelllabs.nethelle (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 state12:39:00
@kloenk:kloenk.eukloenkthe let me see right now as sitting is good right now to eehh devshell needs so long pipeline :p14:09:02
@commentator2.0:elia.gardenRutile (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

Show newer messages


Back to Room ListRoom Version: 10