fix: gitea workflow
Some checks are pending
Update Nix Packages with nix-update / nix-update (push) Waiting to run

This commit is contained in:
m3tm3re
2026-01-20 20:57:31 +01:00
parent 1c7a7f0c82
commit d674b2f02b
3 changed files with 22 additions and 10 deletions

View File

@@ -1,10 +1,16 @@
{pkgs, inputs ? null, ...}: let
{
pkgs,
inputs ? null,
...
}: let
# Upstream opencode v1.1.27 strictly requires Bun 1.3.5 but its locked nixpkgs provides 1.3.6
# We patch package.json to match the environment version to fix the build
opencode = inputs.opencode.packages.${pkgs.system}.opencode.overrideAttrs (old: {
postPatch = (old.postPatch or "") + ''
substituteInPlace package.json --replace-fail "bun@1.3.5" "bun@1.3.6"
'';
postPatch =
(old.postPatch or "")
+ ''
substituteInPlace package.json --replace-fail "bun@1.3.5" "bun@1.3.6"
'';
});
in {
# Custom packages registry
@@ -24,5 +30,5 @@ in {
# Imported from flake inputs
inherit opencode;
opencode-desktop = inputs.opencode.packages.${pkgs.system}.desktop.override { inherit opencode; };
opencode-desktop = inputs.opencode.packages.${pkgs.system}.desktop.override {inherit opencode;};
}