nix: read version from cargo.toml
fix spelling error
This commit is contained in:
parent
087e76388d
commit
604c26647e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue