summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
Diffstat (limited to 'ripple')
-rw-r--r--ripple/.envrc8
-rw-r--r--ripple/shell.nix16
2 files changed, 24 insertions, 0 deletions
diff --git a/ripple/.envrc b/ripple/.envrc
new file mode 100644
index 0000000..813aa10
--- /dev/null
+++ b/ripple/.envrc
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: V <v@unfathomable.blue>
+# SPDX-License-Identifier: OSL-3.0
+
+if has lorri; then
+	eval "$(lorri direnv)"
+else
+	use nix
+fi
diff --git a/ripple/shell.nix b/ripple/shell.nix
new file mode 100644
index 0000000..9282613
--- /dev/null
+++ b/ripple/shell.nix
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: V <v@unfathomable.blue>
+# SPDX-License-Identifier: OSL-3.0
+
+with import ./nix;
+
+mkShell {
+  packages = [
+    cargo
+    cargo-watch
+    clippy
+
+    # needed by rust-analyzer
+    rustc  # core crate code
+    rustfmt  # format-on-save
+  ];
+}