Skip to content

Commit

Permalink
Merge pull request #95 from tsirysndr/fix/plugin/devbox
Browse files Browse the repository at this point in the history
fix(devbox): install nix on use devbox
  • Loading branch information
tsirysndr authored Oct 8, 2023
2 parents d7b05cc + 2da4551 commit 4a27a3b
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 4a27a3b

Please sign in to comment.