Skip to content

Commit 4b1b722

Browse files
fix(nix): re-inherit patches in desktop, ad-hoc sign .app on darwin (#27869)
1 parent 6b03be5 commit 4b1b722

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

nix/desktop.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
stdenv,
44
bun,
55
nodejs,
6+
darwin,
67
electron_41,
78
makeWrapper,
89
writableTmpDirAsHomeHook,
@@ -14,7 +15,12 @@ let
1415
in
1516
stdenv.mkDerivation (finalAttrs: {
1617
pname = "opencode-desktop";
17-
inherit (opencode) version src node_modules;
18+
inherit (opencode)
19+
version
20+
src
21+
node_modules
22+
patches
23+
;
1824

1925
nativeBuildInputs = [
2026
bun
@@ -23,6 +29,9 @@ stdenv.mkDerivation (finalAttrs: {
2329
writableTmpDirAsHomeHook
2430
] ++ lib.optionals stdenv.hostPlatform.isLinux [
2531
autoPatchelfHook
32+
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33+
# Ad-hoc sign the .app: --config.mac.identity=null below skips signing.
34+
darwin.autoSignDarwinBinariesHook
2635
];
2736

2837
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [

0 commit comments

Comments
 (0)