Skip to content

Commit

Permalink
fix(devbox): install nix on use devbox
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Oct 8, 2023
1 parent d7b05cc commit 2da4551
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

packages.default = pkgs.deno2nix.mkExecutable {
pname = "repl";
version = "0.6.1";
version = "0.6.2";

src = ./.;
lockfile = "./deno.lock";
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
2 changes: 2 additions & 0 deletions plugins/devbox.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -60,6 +61,7 @@ class Devbox implements Plugin {
}

async install(): Promise<void> {
await new Nix().install();
await spawn("sh", [
"-c",
"type devbox > /dev/null || curl -fsSL https://get.jetpack.io/devbox | bash",
Expand Down

0 comments on commit 2da4551

Please sign in to comment.