From 296a40ce9457690c203cbcd6b5b07c6c114b6a77 Mon Sep 17 00:00:00 2001 From: Luna Schwalbe Date: Thu, 2 Apr 2026 18:10:38 +0200 Subject: [PATCH] Fix string escaping in flake.nix regex `\.` in a Nix string is interpreted as an invalid escape sequence, which currently ignores the backslash and evaluates simply to `.`. This is not the desired behavior, and also a deprecated features of Nix. The recent release of Lix 2.95 introduced a warning for these cases. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 710bd0042..9ee4393d4 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ parseVersionFieldFromZon = name: lib.pipe ./build.zig.zon [ builtins.readFile - (builtins.match ".*\n[[:space:]]*\.${name}[[:space:]]=[[:space:]]\"([^\"]+)\".*") + (builtins.match ".*\n[[:space:]]*\\.${name}[[:space:]]=[[:space:]]\"([^\"]+)\".*") builtins.head ]; zlsVersionShort = parseVersionFieldFromZon "version";