Pin opencode on WSL; Update

This commit is contained in:
Martin Pander
2026-05-19 12:18:33 +02:00
parent 15c019b4df
commit 850fc48981
4 changed files with 58 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
# Overlay to provide a pinned version of opencode
# This pins opencode to a specific nixpkgs commit to avoid issues
# with the latest unstable version (e.g., segfaults).
#
# Usage: Pass nixpkgs-opencode input when applying overlay:
# overlays = [ (import ./modules/overlays/opencode.nix nixpkgs-opencode) ];
nixpkgs-opencode: final: prev: {
opencode-pinned = (import nixpkgs-opencode {
inherit (prev) system;
config.allowUnfree = true;
}).opencode;
}