emacsMacport: get rid of stdenv override, fix aarch64-darwin build#138424
emacsMacport: get rid of stdenv override, fix aarch64-darwin build#138424mikroskeem wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
Tested with sandboxing natively, skipped sandbox on x86_64-darwin arch (via Rosetta) because it takes painfully long time to finish. Note: to get Rosetta working under Nix with {
nix.sandboxPaths = [
"/private/var/db/oah" # aot files
"/Library/Apple" # rosetta runtime
];
} |
|
OK, seems like it's unstable on aarch64 suddenly. Investigating. |
cd7bfe7 to
b498b18
Compare
|
Got it working, apparently launching |
b498b18 to
84e8bdb
Compare
| ] ++ lib.optionals stdenv.isAarch64 [ | ||
| sigtool | ||
| ]; |
There was a problem hiding this comment.
It's been a while, so I'm unable to give a proper answer. But something to do with ARM macOS requiring a code signature, while Intel macOS does not.
There was a problem hiding this comment.
IIRC emacs build system does not invoke sigtool on x86_64-darwin at all, so I didn't find it necessary to declare it as a dependency for it. Doesn't hurt to remove conditional, I just go by declaring bare minimum required to build & run the thing successfully.
|
FYI: #155360. I'm trying to integrate your patch and got it working but both patches still crash on startup. It's inconsistent, so perhaps, just by chance, the time you ran it via |
|
I wonder why our emacsMacport crashes but @railwaycat's build doesn't. |
|
I don't need this PR anymore, someone else feel free to pick this up. |
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)