summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..9a709aa
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,27 @@
+{
+ description = "A Rust project with LSP";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = { self, nixpkgs, flake-utils, ... }@inputs:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ in
+ {
+ devShell = pkgs.mkShell {
+ buildInputs = with pkgs; [
+ rustc
+ cargo
+ rust-analyzer
+ ];
+
+ shellHook = ''
+ echo "Rust and Rust Analyzer are ready!"
+ '';
+ };
+ });
+}
Software created with 💖