Skip to content

libexpr/primops: crank up our user agent#10

Merged
tazjin merged 1 commit intotvlfyi:2.3-maintenancefrom
sternenseemann:user-agent
Sep 2, 2025
Merged

libexpr/primops: crank up our user agent#10
tazjin merged 1 commit intotvlfyi:2.3-maintenancefrom
sternenseemann:user-agent

Conversation

@sternenseemann
Copy link

@sternenseemann sternenseemann commented Aug 14, 2025

(Edited.)

See NixOS/nixpkgs@fa0cba1.

We'll see how dependent nixpkgs will grow on newer and features and how
feasible it is to continue using Nix 2.3.

The compat code that will be immediately removed looks like it doesn't
actually affect Nix 2.3.18 which already had some fixes backported:

@sternenseemann
Copy link
Author

sternenseemann commented Aug 14, 2025

This is probably the more concerning one: NixOS/nixpkgs#433055

@sternenseemann
Copy link
Author

This is probably the more concerning one: NixOS/nixpkgs#433055

Actually not a problem, even with Nix 2.3.18: 0c5333a.

/* Set our user agent string, so we can evaluate Nixpkgs.
See also <https://git.lix.systems/lix-project/lix/src/commit/4a119e6e46f/lix/libexpr/builtin-constants/nixVersion.md>.
*/
mkString(v, "2.18.3-tvl");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should go full browser? "2.18.3-tvl-cppnix-2.3-actual` )))

Copy link
Author

@sternenseemann sternenseemann Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, applied. I initially copied Lix's approach who intentionally picked a static string that makes sense with existing checks, but they would never change as a way of disagreeing with this builtin existing. However, there is no reason we can't be a bit more whimsical about it.

See NixOS/nixpkgs@fa0cba1.

We'll see how dependent nixpkgs will grow on newer and features and how
feasible it is to continue using Nix 2.3.

The compat code that will be immediately removed looks like it doesn't
actually affect Nix 2.3.18 which already had some fixes backported:

- NixOS/nixpkgs#433101. Some features of fileset
  won't work anymore, but fileset is disallowed in nixpkgs anyways.
  The documentation workaround only affects Nix < 2.3.5.
- NixOS/nixpkgs#433055. The fix for NIX_ATTRS_*
  has been backported to Nix 2.3.18.
@tazjin tazjin merged commit 4f415e6 into tvlfyi:2.3-maintenance Sep 2, 2025
@sternenseemann sternenseemann deleted the user-agent branch September 2, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants