!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

880 Members
For people hacking on the Nix package manager itself185 Servers

Load older messages


SenderMessageTime
10 Oct 2025
@Ericson2314:matrix.orgJohn Ericson #dev:nixos.org this channel 21:05:28
@Ericson2314:matrix.orgJohn Ericsonsorry!21:05:34
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): your suggestion didn't quite work so I just std::ranges:find harder until it did :) 21:14:54
@Ericson2314:matrix.orgJohn Ericson
    if (auto it = std::ranges::find_if(
            externalBuilders.get().begin(),
            externalBuilders.get().end(),
            [&](const auto & handler) {
                return std::ranges::find(handler.systems, drv.platform) != handler.systems.end();
            });
        it != externalBuilders.get().end())
        return &*it;
    return nullptr;
21:15:48
@Ericson2314:matrix.orgJohn Ericson:)21:15:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Oh no why21:18:54
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): added a commit to make it a set 21:19:15
@Ericson2314:matrix.orgJohn Ericsonthe inner thing21:19:21
@lovesegfault:matrix.orglovesegfault

Sergei Zimmerman (xokdvium): RE https://github.com/NixOS/nix/pull/14209#discussion_r2422146488

I can make the change to include the s3 params in the cacheKey

21:56:29
@lovesegfault:matrix.orglovesegfaultshouldn't be hard21:56:30
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I think it should be done somewhat centralized and with a common abstraction for the stores. This is a pre-existing problem already for the s3 store thoughh21:57:18
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)* I think it should be done somewhat centralized and with a common abstraction for the stores. This is a pre-existing problem already for the s3 store though21:57:21
@lovesegfault:matrix.orglovesegfaultACK22:04:18
@lovesegfault:matrix.orglovesegfaultpushed a new rev of https://github.com/NixOS/nix/pull/14209 if you could take another look :) 22:06:30
11 Oct 2025
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): oh no c97b050a6c212d0b748303080b5604309b7abdce is this the thing that does the closure that I guess is no good 00:27:50
@Ericson2314:matrix.orgJohn Ericsonnevermind maybe not the same bug00:27:54
@Ericson2314:matrix.orgJohn Ericsonor at least that one is also a problem00:27:59
@fzakaria:one.ems.hostfzakaria any good issues to try and tackle?
Sergei Zimmerman (xokdvium) i guess you figured out that weird postgres one
02:26:09
@fzakaria:one.ems.hostfzakariai'm not sure how you narrowed it down to path length; i missed that part of the RCA02:26:20
@perra23:mozilla.orgperra23 joined the room.04:38:38
@lovesegfault:matrix.orglovesegfaultHot off the press: https://github.com/NixOS/nix/pull/1421818:43:30
@lovesegfault:matrix.orglovesegfaultHot off the press: https://github.com/NixOS/nix/pull/1421919:11:00
@Ericson2314:matrix.orgJohn Ericsonnevermind, that is just a fairly innocuous boolean field20:07:03
@Ericson2314:matrix.orgJohn Ericsonso it won't cause "that bad" of UB20:07:09
@Ericson2314:matrix.orgJohn Ericsonand we just saw the issue from the first commit20:07:15
@Ericson2314:matrix.orgJohn Ericsonso I am back to my "one bug, two symptoms" theory 20:07:31
@midischwarz12:libg.somidischwarz12 joined the room.20:27:33
@tavinator:matrix.orgtavinator

nix, or nixpkgs, does not really have a concept of multiple extant versions of a package. i see this worked around in cases of overwhelming importance with e.g. python312, python313 etc.

but in general if you need an older version of package XYZ you are dealing with a git history search and pinning to a commit

there is no fundamental reason why nixpkgs HEAD could not contain the logic for multiple versions of package XYZ

so - to start from the beginning - is there something in nix itself that keeps me from e.g. writing opentofu-1.6.3 or opentofu==1.6.3 or whatever as the package i want to install?

background: i want to introduce nix devshells in a company where this kind of situation happens all the time (i.e. some project has to be checked out from github and worked on using a list of software versions that is both brittle and not recent)

22:35:31
12 Oct 2025
@lovesegfault:matrix.orglovesegfault John Ericson, Sergei Zimmerman (xokdvium) why do we run functional tests against an old version of Nix? It's causing my new multiple-outputs cycle detection functional tests to fail under nix-daemon-compat-tests 00:05:50
@lovesegfault:matrix.orglovesegfaultShould I make the test agnostic to the old version or just not have it run when in compat tests?00:06:10

Show newer messages


Back to Room ListRoom Version: 6