!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

408 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
20 Aug 2025
@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 (4094@39c3) 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
@raitobezarius:matrix.orgraitobezariusok, i will do a clean revert of the 12-submitted-series14:36:25
@raitobezarius:matrix.orgraitobezarius https://gerrit.lix.systems/c/lix/+/4039 revert chain 14:37:24
@raitobezarius:matrix.orgraitobezariusrevert applied20:14:52
@emilazy:matrix.orgemilyI'll look into it when I get the chance.20:16:34
@raitobezarius:matrix.orgraitobezarius no worries, emily, take your time 20:16:47
@raitobezarius:matrix.orgraitobezariusthank you!20:16:49
@niko:nrab.lolniko ⚡️I forgor to contribute adding capnproto to propagadedBuildInputs again damn21:45:03
@niko:nrab.lolniko ⚡️ Each time bumping attic reminds me to do it and each time I forget about it 21:45:26
@june:nekover.seJune joined the room.22:48:48
@julian:nekover.se@julian:nekover.se left the room.22:49:16
23 Aug 2025
@aloisw:julia0815.dealoisw So we require a toml11 version that is not in nixpkgs yet? https://git.lix.systems/lix-project/lix/commit/4de09b6b5493db4bd7f6348255a1fdcb38b9ed2f 08:27:24
@emilazy:matrix.orgemilyit is not in Nixpkgs precisely because of Nix/Lix and nothing else16:47:52
@emilazy:matrix.orgemilybut also those commits didn't get backported to stable versions yet16:48:35
@emilazy:matrix.orgemilybecause I opened cherry-picks and then the build broke and I ran out of energy to fix it16:48:44
@emilazy:matrix.orgemily(most of the code that commit makes unconditional is removed immediately after with the busted experimental feature anyway…)16:50:13
@aloisw:julia0815.dealoisw Yeah I noticed as much, see https://github.com/NixOS/nixpkgs/pull/434186#issuecomment-3216812062 for some more context. 17:12:51
@emilazy:matrix.orgemilyI think if someone handles the backports for the backportable part of the stack then the deadlock will be broken.17:49:14
@emilazy:matrix.orgemilyit was only reverted on the Nix end because of the cursed Nixpkgs behaviour but I got that fixed in Nixpkgs17:49:26

Show newer messages


Back to Room ListRoom Version: 10