fix(nix): re-inherit patches in desktop, ad-hoc sign .app on darwin (#27869)
This commit is contained in:
parent
6b03be5468
commit
4b1b722e98
@ -3,6 +3,7 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
bun,
|
bun,
|
||||||
nodejs,
|
nodejs,
|
||||||
|
darwin,
|
||||||
electron_41,
|
electron_41,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
@ -14,7 +15,12 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "opencode-desktop";
|
pname = "opencode-desktop";
|
||||||
inherit (opencode) version src node_modules;
|
inherit (opencode)
|
||||||
|
version
|
||||||
|
src
|
||||||
|
node_modules
|
||||||
|
patches
|
||||||
|
;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
bun
|
bun
|
||||||
@ -23,6 +29,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
writableTmpDirAsHomeHook
|
writableTmpDirAsHomeHook
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
# Ad-hoc sign the .app: --config.mac.identity=null below skips signing.
|
||||||
|
darwin.autoSignDarwinBinariesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user