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

Commit 803e595

Browse files
committed
Correctly find codesign binary
Fixes #4
1 parent 59fd960 commit 803e595

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

emacs-overlay.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
let
23
pkgs = import ./pkgs.nix;
34

@@ -34,18 +35,24 @@ let
3435
}))
3536
];
3637

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

39-
emacsOsxNative = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [ ] {
42+
emacsOsxNative = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
43+
./patches/codesign.patch
44+
] {
4045
nativeComp = true;
4146
};
4247

4348
emacsOsxTile = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
49+
./patches/codesign.patch
4450
./patches/no-titlebar.patch
4551
./patches/fix-window-role-yabai.patch
4652
] { };
4753

4854
emacsOsxNativeTile = mkGitEmacs "emacs-osx" ./emacs-source/emacs-master.json [
55+
./patches/codesign.patch
4956
./patches/no-titlebar.patch
5057
./patches/fix-window-role-yabai.patch
5158
] { 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)