summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..095f049
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+ description = "Rust flake";
+ inputs =
+ {
+ nixpkgs.url = "github:nixos/nixpkgs/25.11";
+ flake-utils.url = "github:numtide/flake-utils";
+ # flake-utils.follows = "nixpkgs";
+ };
+
+ outputs = { self, nixpkgs, ... }@inputs:
+ inputs.flake-utils.lib.eachDefaultSystem (system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+ devShells.default = pkgs.mkShell
+ {
+ packages = with pkgs; [
+ cargo
+ rustc
+ rust-analyzer
+ ];
+ };
+ });
+}