diff --git a/hosts/lio/flake.lock b/hosts/lio/flake.lock index 102a5da..2a23f80 100644 --- a/hosts/lio/flake.lock +++ b/hosts/lio/flake.lock @@ -1152,6 +1152,23 @@ "type": "github" } }, + "opencode": { + "flake": false, + "locked": { + "lastModified": 1752020810, + "narHash": "sha256-Sh7FEn34iL4iZuusmghLCvKHfx/CMjOogBwnT+enz4g=", + "owner": "sst", + "repo": "opencode", + "rev": "58b1c58bc59e82ea05dfa5f4dfce8111c4e2995a", + "type": "github" + }, + "original": { + "owner": "sst", + "ref": "v0.2.13", + "repo": "opencode", + "type": "github" + } + }, "ragenix": { "inputs": { "agenix": "agenix", @@ -1179,6 +1196,7 @@ "common": "common", "nixpkgs": "nixpkgs_4", "nixpkgs-unstable": "nixpkgs-unstable", + "opencode": "opencode", "ros_neovim": "ros_neovim" } }, diff --git a/hosts/lio/flake.nix b/hosts/lio/flake.nix index f6f752c..39ab07c 100644 --- a/hosts/lio/flake.nix +++ b/hosts/lio/flake.nix @@ -8,6 +8,9 @@ common.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles"; ros_neovim.url = "git+https://git.joshuabell.xyz/ringofstorms/nvim"; + + opencode.url = "github:sst/opencode/v0.2.13"; + opencode.flake = false; }; outputs = @@ -48,7 +51,16 @@ { nixpkgs.overlays = [ (final: prev: { - opencode = nixpkgs-unstable.legacyPackages.${prev.system}.opencode; + opencode = nixpkgs-unstable.legacyPackages.${prev.system}.opencode.overrideAttrs (old: rec { + version = "0.2.13"; + src = inputs.opencode; + node_modules = old.node_modules.overrideAttrs (nmOld: { + outputHash = "sha256-1ZxetDrrRdNNOfDOW2uMwMwpEs5S3BLF+SejWcRdtik="; + }); + tui = old.tui.overrideAttrs (tuiOld: { + vendorHash = "sha256-Qvn59PU95TniPy7JaZDJhn/wUCfFYM+7bzav1jxNv34="; + }); + }); }) ]; }