nix: read version from cargo.toml

fix spelling error
This commit is contained in:
notohh 2024-04-08 17:59:36 -04:00
parent 087e76388d
commit 604c26647e
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -22,10 +22,11 @@
in { in {
packages = eachSystem (system: let packages = eachSystem (system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;
in { in {
default = pkgsFor.${system}.rustPlatform.buildRustPackage { default = pkgsFor.${system}.rustPlatform.buildRustPackage {
pname = "forcebot_rs"; pname = "forcebot_rs";
version = "v0.1"; version = "${version}";
src = self; src = self;