From d9cb2e82afe7914e126eb7963d895620a8d9adaf Mon Sep 17 00:00:00 2001 From: Caleb Norton Date: Fri, 16 Jan 2026 13:34:47 -0600 Subject: [PATCH 1/2] Revert "Update Nix flake.lock and x86_64-linux hash" upgrade to bun 1.3.6 was reverted without revering the flake.lock this reverts the flake.lock to a nixpkgs with bun 1.3.5 This reverts commit 60aa0cb96e81ca0dcf381af0aa6fa922a4e194e2. --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 58bdca6bf6a..5ef276f0a08 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1768395095, - "narHash": "sha256-ZhuYJbwbZT32QA95tSkXd9zXHcdZj90EzHpEXBMabaw=", + "lastModified": 1768302833, + "narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "13868c071cc73a5e9f610c47d7bb08e5da64fdd5", + "rev": "61db79b0c6b838d9894923920b612048e1201926", "type": "github" }, "original": { From ecf80cb1e55adf55b93759f22dffb73a7cd5f276 Mon Sep 17 00:00:00 2001 From: Caleb Norton Date: Fri, 16 Jan 2026 13:56:03 -0600 Subject: [PATCH 2/2] chore: nix cleanup before this, "nix run .#opencode-dev" didnt even work there's already a devShell which enables running "bun run dev" so the wrapper app is basically useless --- .gitignore | 1 + flake.nix | 28 +++------------------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 75fa054a5e4..78a77f81982 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ opencode.json a.out target .scripts +.direnv/ # Local dev files opencode-dev diff --git a/flake.nix b/flake.nix index 4219a7e8e10..32614640ad3 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ outputs = { + self, nixpkgs, ... }: @@ -107,33 +108,10 @@ }; in { - default = opencodePkg; + default = self.packages.${system}.opencode; + opencode = opencodePkg; desktop = desktopPkg; } ); - - apps = forEachSystem ( - system: - let - pkgs = pkgsFor system; - in - { - opencode-dev = { - type = "app"; - meta = { - description = "Nix devshell shell for OpenCode"; - runtimeInputs = [ pkgs.bun ]; - }; - program = "${ - pkgs.writeShellApplication { - name = "opencode-dev"; - text = '' - exec bun run dev "$@" - ''; - } - }/bin/opencode-dev"; - }; - } - ); }; }