Skip to content

Commit 6d14583

Browse files
committed
rust shell
1 parent 932816b commit 6d14583

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

rust/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake .

rust/flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/flake.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
description = "Rust Dev Shell";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = {
10+
self,
11+
nixpkgs,
12+
flake-utils,
13+
}:
14+
flake-utils.lib.eachDefaultSystem (
15+
system: let
16+
pkgs = nixpkgs.legacyPackages.${system};
17+
in {
18+
devShells.default = pkgs.mkShell {
19+
packages = [
20+
pkgs.rustup
21+
];
22+
};
23+
}
24+
);
25+
}

0 commit comments

Comments
 (0)