From 2da455140e9699a8eb62f18acb019a55a7dc240d Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 8 Oct 2023 18:19:55 +0000 Subject: [PATCH] fix(devbox): install nix on use devbox --- flake.nix | 2 +- main.ts | 2 +- plugins/devbox.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e735b00..e448fc4 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ packages.default = pkgs.deno2nix.mkExecutable { pname = "repl"; - version = "0.6.1"; + version = "0.6.2"; src = ./.; lockfile = "./deno.lock"; diff --git a/main.ts b/main.ts index 41b532e..71aa909 100644 --- a/main.ts +++ b/main.ts @@ -112,7 +112,7 @@ if (import.meta.main) { ./((((((((((((((((((((((((((( . .`) ); - console.log("Repl v0.6.1 🚀 ✨"); + console.log("Repl v0.6.2 🚀 ✨"); console.log("exit using ctrl+c, or exit, type help for more info"); repl(); } diff --git a/plugins/devbox.ts b/plugins/devbox.ts index 3e4781d..588c591 100644 --- a/plugins/devbox.ts +++ b/plugins/devbox.ts @@ -1,5 +1,6 @@ import { evaluateSystemCommand, spawn } from "../src/helpers.ts"; import Plugin from "../src/plugin.ts"; +import Nix from "./nix.ts"; class Devbox implements Plugin { name = "devbox"; @@ -60,6 +61,7 @@ class Devbox implements Plugin { } async install(): Promise { + await new Nix().install(); await spawn("sh", [ "-c", "type devbox > /dev/null || curl -fsSL https://get.jetpack.io/devbox | bash",