fix: gitea workflow
Some checks are pending
Update Nix Packages with nix-update / nix-update (push) Waiting to run
Some checks are pending
Update Nix Packages with nix-update / nix-update (push) Waiting to run
This commit is contained in:
@@ -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;};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user