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 {
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue