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;