add
This commit is contained in:
@@ -13,17 +13,14 @@
|
||||
let
|
||||
projectName = "rust-template";
|
||||
projectVersion = "0.1.0";
|
||||
rustVersion = "1.78.0";
|
||||
rustVersion = "latest";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ (import rust-overlay) ];
|
||||
};
|
||||
|
||||
rustToolchain = pkgs.rust-bin.fromRustVersion {
|
||||
rustVersion = rustVersion;
|
||||
extensions = [ "rust-src" "rustfmt" "clippy" ];
|
||||
};
|
||||
rustToolchain = pkgs.rust-bin.stable."${rustVersion}".default;
|
||||
|
||||
rustLibSrc = "${rustToolchain}/lib/rustlib/src/rust";
|
||||
|
||||
@@ -37,6 +34,7 @@
|
||||
|
||||
devPackages = with pkgs; [
|
||||
# Rust-specific tools
|
||||
rustToolchain
|
||||
rust-analyzer
|
||||
sccache
|
||||
cargo-watch
|
||||
|
||||
Reference in New Issue
Block a user