Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add development shell to manage dependencies (#657)

r33drichardsf9198474faae
diff --git a/DEV.md b/DEV.md
index 277560c6f..e56ee0fe5 100644
--- a/DEV.md
+++ b/DEV.md
@@ -1,3 +1,19 @@
# Releasing e2b cli
-to create a changeset run `npx changeset`
\ No newline at end of file
+to create a changeset run `npx changeset`
+
+
+# Enter Nix development shell
+
+install nix and enable flakes
+
+```
+curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
+```
+
+enter the dev shell
+```
+nix develop --command zsh
+# or
+nix develop --command bash
+```
\ No newline at end of file
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 000000000..7d93dc2e9
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1743448293,
+ "narHash": "sha256-bmEPmSjJakAp/JojZRrUvNcDX2R5/nuX6bm+seVaGhs=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "77b584d61ff80b4cef9245829a6f1dfad5afdfa3",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 000000000..4ca8174f3
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,14 @@
+{
+ description = "A basic dev shell";
+
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ inputs.flake-utils.url = "github:numtide/flake-utils";
+
+ outputs = { self, nixpkgs, flake-utils, ... }:
+ (flake-utils.lib.eachDefaultSystem (system:
+ let pkgs = import nixpkgs { inherit system; };
+ in {
+ devShells.default =
+ pkgs.mkShell { buildInputs = [ pkgs.python39 pkgs.poetry ]; };
+ }));
+}