File tree Expand file tree Collapse file tree 2 files changed +44
-15
lines changed Expand file tree Collapse file tree 2 files changed +44
-15
lines changed Original file line number Diff line number Diff line change 44 inputs = {
55 nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ;
66 flake-utils . url = "github:numtide/flake-utils" ;
7+ rust-overlay . url = "github:oxalica/rust-overlay" ;
78 } ;
89
910 outputs =
1011 {
1112 self ,
1213 nixpkgs ,
1314 flake-utils ,
15+ rust-overlay ,
1416 } :
1517 flake-utils . lib . eachDefaultSystem (
1618 system :
1719 let
18- pkgs = nixpkgs . legacyPackages . ${ system } ;
20+ overlays = [ ( import rust-overlay ) ] ;
21+ pkgs = import nixpkgs {
22+ inherit system overlays ;
23+ } ;
1924 in
2025 {
2126 devShells . default = pkgs . mkShell {
2227 buildInputs = with pkgs ; [
28+ # rust-bin.stable."1.87.0".default
29+ rust-bin . stable . latest . default
2330 cargo
2431 rustc
2532 clippy
2633 rustfmt
2734 rust-analyzer
28-
29- # Additional development tools
30- cargo-watch
31- cargo-edit
32- cargo-audit
33-
34- # Git and other useful tools
35- git
36- ripgrep
37- fd
38-
39- # Optional: Editor support
40- nil # Nix language server
4135 ] ;
4236
4337 shellHook = ''
You can’t perform that action at this time.
0 commit comments