From 275010712ce41dff66634f9910bc1f085239b370 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Wed, 16 Aug 2023 13:09:53 +0200 Subject: [PATCH] Look in [workspace.package] for the version number Since Rust 1.64.0, a workpackage can define a version number that packages in the workspace can inherit. --- config.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.nix b/config.nix index 321e45d..730018b 100644 --- a/config.nix +++ b/config.nix @@ -408,7 +408,9 @@ let packageVersion = if ! isNull attrs.version then attrs.version - else toplevelCargotoml.package.version or "unknown"; + else toplevelCargotoml.package.version + or toplevelCargotoml."workspace.package".version + or "unknown"; }; in buildPlanConfig // { inherit buildConfig; }