From 34ea8139fb7bc7c659da79d9802b6424f132c275 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 07:28:37 +0000 Subject: [PATCH] fix: read flake version from workspace Cargo metadata Co-authored-by: sxyazi <17523360+sxyazi@users.noreply.github.com> --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7c10f7c7..9fab2c75 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,7 @@ rev = self.shortRev or self.dirtyShortRev or "dirty"; date = self.lastModifiedDate or self.lastModified or "19700101"; version = - (builtins.fromTOML (builtins.readFile ./yazi-fm/Cargo.toml)).package.version + (builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version + "pre${builtins.substring 0 8 date}_${rev}"; in {