!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
19 Aug 2025
@raitobezarius:matrix.orgraitobezarius WeetHet https://git.lix.systems/lix-project/lix/issues/966#issuecomment-14125 sadness 20:59:19
@raitobezarius:matrix.orgraitobezariusalso darwin CI still not my friend21:00:10
@raitobezarius:matrix.orgraitobezarius https://gerrit.lix.systems/c/lix/+/4004 21:00:14
@jade_:matrix.orgjade_ https://bytes.zone/posts/tree-grepper/ wow this is cool. sorta off topic. i am going to probably write a nixpkgs package. 21:19:13
@piegames:flausch.socialpiegamesWoow21:40:04
@piegames:flausch.socialpiegamesNeed21:40:05
@emilazy:matrix.orgemilywe have https://github.com/ast-grep/ast-grep iirc21:41:13
@emilazy:matrix.orgemilyI believe people have used it for Nixpkgs work21:41:19
@emilazy:matrix.orgemilyprobably more Production Ready™21:41:47
@jade_:matrix.orgjade_it, very frustratingly, does not take tree sitter queries in s-expr form21:49:10
@jade_:matrix.orgjade_i have tried it before, it has a bunch of opinions which annoy me a varying amount depending on the day21:49:34
@jade_:matrix.orgjade_mostly just that repos should be configured for it (which is totally fair and defensible, but someone might whine about it in nixpkgs)22:00:14
@jade_:matrix.orgjade_https://github.com/NixOS/nixpkgs/pull/435115 have! (with review request attached :P)22:27:22
20 Aug 2025
@federicodschonborn:matrix.orgFederico Damián Schonborn (he/they) changed their profile picture.01:06:55
@raitobezarius:matrix.orgraitobezarius
In reply to @raitobezarius:matrix.org
https://gerrit.lix.systems/c/lix/+/4004
that revert might not make sense in the end
10:20:22
@raitobezarius:matrix.orgraitobezariusi think we are facing a combination of two things:10:20:29
@raitobezarius:matrix.orgraitobezariushangs due to certificates10:20:31
@raitobezarius:matrix.orgraitobezariusand emilazy's changes might be doing something bad to darwin10:20:38
@emilazy:matrix.orgemily I tested with temp-dir = /nix/tmp. possible that I regressed something with temp-dir = /tmp. though it would be a bit weird since most of the refactoring around temp stuff was fairly mechanical 11:32:47
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 (4094@GPN23) to jopejoe1.18:50:44
21 Aug 2025
@weethet:catgirl.cloudWeetHetWhat the07:58:55
@weethet:catgirl.cloudWeetHet nix flake update should have nothing to do with that code 08:01:19
@weethet:catgirl.cloudWeetHet

Fails:

$ nix --extra-experimental-features nix-command --extra-experimental-features flakes flake lock --override-input lix git+https://git.lix.systems/lix-project/lix?rev=20f84eb6bfa874a1c4f45b38b949335f580ea0d7
error:
       … while updating the lock file of flake 'path:/Users/weethet/Projects/Trash?lastModified=1755765056&narHash=sha256-gTvZ/vT/V3E8DVb2V%2BH03/0mNxHr7V0RG2FTU1V9B7U%3D'

       … while updating the flake input 'lix'

       … while fetching the input 'git+https://git.lix.systems/lix-project/lix?rev=20f84eb6bfa874a1c4f45b38b949335f580ea0d7'

       error: failed to extract archive (Cannot extract through symlink /tmp/nix-7s5dsxncvd8wyr6wd9wpkv5f4y/.clang-format)

Succeeds:

$ TMPDIR=/private/tmp nix --extra-experimental-features nix-command --extra-experimental-features flakes flake lock --override-input lix git+https://git.lix.systems/lix-project/lix?rev=20f84eb6bfa874a1c4f45b38b949335f580ea0d7
09:15:11
@weethet:catgirl.cloudWeetHet

Probably this would be the fix:

Path defaultTempDir()
{
    auto dir = settings.tempDir.get().or_else([] {
        return getEnvNonEmpty("TMPDIR").and_then([](auto val) -> std::optional<Path> {
#if __APPLE__
            /* On macOS, don't use the per-session TMPDIR (as set e.g. by
               sshd). This breaks build users because they don't have access
               to the TMPDIR, in particular in ‘nix-store --serve’. */
            if (val.starts_with("/var/folders/")) {
                return std::nullopt;
            }
#endif
            return val;
        });
    }).value_or("/tmp");
    
    return canonPath(dir, true);
}
09:16:15
@emilazy:matrix.orgemilywhy would it need to change? did I break the behaviour of something in the temp directory functions?10:27:50
@emilazy:matrix.orgemily tbh that #if __APPLE__ seems obsolete 10:28:21
@emilazy:matrix.orgemily given that builds are now in /nix 10:28:26
@emilazy:matrix.orgemilymaybe we could just drop it…10:28:30
@raitobezarius:matrix.orgraitobezarius emily given https://git.lix.systems/lix-project/lix/issues/975 i intend to submit a revert of the series starting from there fwiw 14:34:33
@raitobezarius:matrix.orgraitobezariusmaybe a clean revert is better hm14:35:21

Show newer messages


Back to Room ListRoom Version: 10