Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 49aa0a8

Browse files
committed
Correctly find codesign binary
Fixes #4
1 parent 59fd960 commit 49aa0a8

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

emacs-overlay.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,24 @@ let
3434
}))
3535
];
3636

37-
emacsOsx = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [ ] { };
37+
emacsOsx = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
38+
./patches/codesign.patch
39+
] { };
3840

39-
emacsOsxNative = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [ ] {
41+
emacsOsxNative = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
42+
./patches/codesign.patch
43+
] {
4044
nativeComp = true;
4145
};
4246

4347
emacsOsxTile = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
48+
./patches/codesign.patch
4449
./patches/no-titlebar.patch
4550
./patches/fix-window-role-yabai.patch
4651
] { };
4752

4853
emacsOsxNativeTile = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
54+
./patches/codesign.patch
4955
./patches/no-titlebar.patch
5056
./patches/fix-window-role-yabai.patch
5157
] { nativeComp = true; };

patches/codesign.patch

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- a/src/Makefile.in
2+
+++ b/src/Makefile.in
3+
@@ -698,7 +698,7 @@
4+
ifeq ($(HAVE_PDUMPER),yes)
5+
$(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) [email protected]
6+
ifeq ($(DO_CODESIGN),yes)
7+
- codesign -s - -f [email protected]
8+
+ /usr/bin/codesign -s - -f [email protected]
9+
endif
10+
endif
11+
$(AM_V_at)mv [email protected] $@
12+
@@ -901,7 +901,7 @@
13+
@: In the pdumper case, make compile-first after the dump
14+
cp -f temacs$(EXEEXT) bootstrap-emacs$(EXEEXT)
15+
ifeq ($(DO_CODESIGN),yes)
16+
- codesign -s - -f bootstrap-emacs$(EXEEXT)
17+
+ /usr/bin/codesign -s - -f bootstrap-emacs$(EXEEXT)
18+
endif
19+
endif

0 commit comments

Comments
 (0)