Signed-off-by: Christoph Schmatzler <christoph@tuist.dev>
This commit is contained in:
Christoph Schmatzler
2025-11-03 13:10:14 +01:00
parent d159c3a9f1
commit 841105b052
3 changed files with 30 additions and 15 deletions

12
overlays/opencode.nix Normal file
View File

@@ -0,0 +1,12 @@
{inputs}: final: prev: {
# Override the fixed-output hash for the nested derivation
# opencode-src-with-node_modules on x86_64-linux
opencode = prev.opencode.overrideAttrs (old: {
"src-with-node_modules" = old."src-with-node_modules".overrideAttrs (o2: {
outputHash = if prev.stdenv.hostPlatform.system == "x86_64-linux"
then "sha256-eML3T1FQ5ziRWIuLDirnHvxLEKMtKDy3op47JnfFU6w="
else o2.outputHash;
});
});
}