Skip to content

Commit f37f7a2

Browse files
committed
rust-overlay
1 parent 00f8b06 commit f37f7a2

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed

flake.lock

Lines changed: 36 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,34 @@
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 = ''

0 commit comments

Comments
 (0)