Flakes is reaching 10 years of age and is not any closer to being “stable”. Nix maintainers can’t seem to just drop the cojones on the table and say “it’s stable now and it will be versioned, so some old flakes may break if they don’t update”. What could the community do to implement an external, versioned, flakes solution? Which features would be necessary to have parity with flakes and/or even improve them?

  • balsoft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    6 days ago

    I’ve been talking to people, trying to stabilize it. I think the last missing pieces before the Nix team can call flakes “stable” is to fix a bunch of fetcher bugs and maybe come up with a better flake lock format that’s still backwards compatible. Of course it has already been LLM-vomited to life, but it needs some major changes in order to actually be acceptable, and then someone needs to review it and test it etc. If we stabilize flakes, suddenly all the bugs that are there may become part of the API, so a lot of care needs to go into it.

    The 3.0 CLI is a different story and will probably be a bit more difficult.

    You might find this talk interesting: https://talks.nixcon.org/nixcon-2026/talk/WEADU3/ (youtube: https://youtu.be/hzd4z-7sc3M)

    • onlinepersona@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      6 days ago

      I don’t understand why the experimental thing needs to be backwards compatible. Ok, many people are using it, but can’t you call that v0.1 (anything without s version number = 0.1), add a bunch of deprecation warnings, add a code-path for old code, and fix bugs while versioning until you reach your desired stable and make that breaking change to v1 aka stable?