From 604c26647e817b05feeeb75e5f300708e4f02291 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 8 Apr 2024 17:59:36 -0400 Subject: [PATCH] nix: read version from cargo.toml fix spelling error --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f29c01a..bfd6561 100644 --- a/flake.nix +++ b/flake.nix @@ -22,10 +22,11 @@ in { packages = eachSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; + version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version; in { default = pkgsFor.${system}.rustPlatform.buildRustPackage { pname = "forcebot_rs"; - version = "v0.1"; + version = "${version}"; src = self;