We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b03be5 commit 4b1b722Copy full SHA for 4b1b722
1 file changed
nix/desktop.nix
@@ -3,6 +3,7 @@
3
stdenv,
4
bun,
5
nodejs,
6
+ darwin,
7
electron_41,
8
makeWrapper,
9
writableTmpDirAsHomeHook,
@@ -14,7 +15,12 @@ let
14
15
in
16
stdenv.mkDerivation (finalAttrs: {
17
pname = "opencode-desktop";
- inherit (opencode) version src node_modules;
18
+ inherit (opencode)
19
+ version
20
+ src
21
+ node_modules
22
+ patches
23
+ ;
24
25
nativeBuildInputs = [
26
bun
@@ -23,6 +29,9 @@ stdenv.mkDerivation (finalAttrs: {
29
writableTmpDirAsHomeHook
30
] ++ lib.optionals stdenv.hostPlatform.isLinux [
31
autoPatchelfHook
32
+ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33
+ # Ad-hoc sign the .app: --config.mac.identity=null below skips signing.
34
+ darwin.autoSignDarwinBinariesHook
35
];
27
36
28
37
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
0 commit comments