about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/.envrc10
-rw-r--r--tvix/.gitignore3
-rw-r--r--tvix/.vscode/extensions.json8
-rw-r--r--tvix/Cargo.lock7
-rw-r--r--tvix/Cargo.toml10
-rw-r--r--tvix/default.nix2
-rw-r--r--tvix/shell.nix10
-rw-r--r--tvix/src/bin/nix-store.rs3
-rw-r--r--tvix/src/main.rs3
9 files changed, 56 insertions, 0 deletions
diff --git a/tvix/.envrc b/tvix/.envrc
new file mode 100644
index 000000000000..ea1ec94e436c
--- /dev/null
+++ b/tvix/.envrc
@@ -0,0 +1,10 @@
+source_env ../.envrc
+
+if type lorri &>/dev/null; then
+    echo "direnv: using lorri from PATH ($(type -p lorri))"
+    eval "$(lorri direnv)"
+else
+    # fall back to using direnv's builtin nix support
+    # to prevent bootstrapping problems.
+    use nix
+fi
diff --git a/tvix/.gitignore b/tvix/.gitignore
new file mode 100644
index 000000000000..f807dfa42c0e
--- /dev/null
+++ b/tvix/.gitignore
@@ -0,0 +1,3 @@
+/target
+/result-*
+/result
diff --git a/tvix/.vscode/extensions.json b/tvix/.vscode/extensions.json
new file mode 100644
index 000000000000..dd7012c107b5
--- /dev/null
+++ b/tvix/.vscode/extensions.json
@@ -0,0 +1,8 @@
+{
+    "recommendations": [
+        "matklad.rust-analyzer"
+    ],
+    "unwantedRecommendations": [
+        "rust-lang.rust"
+    ]
+}
diff --git a/tvix/Cargo.lock b/tvix/Cargo.lock
new file mode 100644
index 000000000000..75581ea7d9f1
--- /dev/null
+++ b/tvix/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "tvix"
+version = "0.1.0"
diff --git a/tvix/Cargo.toml b/tvix/Cargo.toml
new file mode 100644
index 000000000000..2a59a77eaff5
--- /dev/null
+++ b/tvix/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "tvix"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+
+[[bin]]
+name = "nix-store"
diff --git a/tvix/default.nix b/tvix/default.nix
new file mode 100644
index 000000000000..82cd87cda452
--- /dev/null
+++ b/tvix/default.nix
@@ -0,0 +1,2 @@
+{...}:
+{}
diff --git a/tvix/shell.nix b/tvix/shell.nix
new file mode 100644
index 000000000000..600d96d76d28
--- /dev/null
+++ b/tvix/shell.nix
@@ -0,0 +1,10 @@
+let
+  depot = (import ./.. {});
+  pkgs = depot.third_party.nixpkgs;
+
+in pkgs.mkShell {
+  buildInputs = [
+    pkgs.rustup
+    pkgs.rust-analyzer
+  ];
+}
diff --git a/tvix/src/bin/nix-store.rs b/tvix/src/bin/nix-store.rs
new file mode 100644
index 000000000000..7bf5442cb9ed
--- /dev/null
+++ b/tvix/src/bin/nix-store.rs
@@ -0,0 +1,3 @@
+fn main () {
+  println!("hello, nix");
+}
diff --git a/tvix/src/main.rs b/tvix/src/main.rs
new file mode 100644
index 000000000000..40086e6f27ee
--- /dev/null
+++ b/tvix/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, tvix!");
+}