!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1184 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org194 Servers

Load older messages


SenderMessageTime
23 Jun 2021
@abueide:matrix.orgabueideok thanks i have some ideas of things to try now17:01:13
@abueide:matrix.orgabueide

finally a new error to try solving, so exciting haha

In file included from /nix/store/b9g4wkdn7gz0qyc8x4ihb3y6p9ykyr3w-Libsystem-1238.60.2/include/alloca.h:27:
/nix/store/b9g4wkdn7gz0qyc8x4ihb3y6p9ykyr3w-Libsystem-1238.60.2/include/sys/cdefs.h:761:2: error: Unsupported architecture
#error Unsupported architecture
18:02:22
@sandro:supersandro.deSandroare you on aarch64?18:03:53
@abueide:matrix.orgabueideyeah i guess apparently this whole time i was running in rosetta18:05:07
@abueide:matrix.orgabueidewhen i try to build x86_64 I still get the header files not found problem18:05:38
@abueide:matrix.orgabueidebut when i try building with arm64 i get this issue18:05:50
@abueide:matrix.orgabueidebut now i'm learning that it looks like nix doesn't support aarch64 yet18:06:34
@abueide:matrix.orgabueideso maybe i'm still on the same error18:06:41
@sandro:supersandro.deSandro Nix on m1 is flaky. 18:09:05
@sandro:supersandro.deSandroSupport could be better18:09:10
@abueide:matrix.orgabueidewould you recommend to keep trying to build x86_64 on m1 or should i just wait until aarch64 support is ready?18:13:28
@abathur:matrix.orgabathur I imagine it depend a bit on your timeline, though I'm not up on that effort... some others (perhaps toonn and thefloweringash ?) may have a better sense of where it stands 18:35:36
@toonn:matrix.orgtoonn I'm not sure I'd say flaky? 18:59:24
@toonn:matrix.orgtoonn Support could definitely be better though. 18:59:31
@sandro:supersandro.deSandro
In reply to @toonn:matrix.org
I'm not sure I'd say flaky?
It is not consistently good across the board and time
21:20:53
@toonn:matrix.orgtoonn Flaky to me means more that things work when the stars align but are fragile. Afaik once you get the bits that are there set up they just work. I'm not familiar with Aarch64 hardware though. 21:27:19
@magpi:matrix.orgmagpiHello :) I'm very curious: how come none of the software involved with nix seems to be code signed, yet runs with no complaints from GateKeeper?23:12:23
@abathur:matrix.orgabathurnot sure if you're fishing for something specific, but AFAIK there's no One Weird Trick here; a technical blog post like https://eclecticlight.co/2020/11/16/checks-on-executable-code-in-catalina-and-big-sur-a-first-draft/ should lay it out well enough23:33:22
@emilazy:matrix.orgemilyafaik there's no verification done when you run command-line stuff in terminal since it's not spawning an app or whatever23:42:12
@emilazy:matrix.orgemilythat would make too much sense, macOS code signing features are there to annoy you, not to protect your system :P23:42:31
@emilazy:matrix.orgemilyApple Silicon requires signatures on all binaries afaik but the "signature" can just be a hash for anonymous stuff23:42:49
@emilazy:matrix.orgemilyoh hm I guess going by that article I'm wrong23:43:14
@emilazy:matrix.orgemilyoh, I see, the flowchart shows it pretty much unconditionally works even for unsigned binaries23:43:44
@emilazy:matrix.orgemily something has to be different for .apps at least since you do get a warning opening Nix-built app bundles 23:44:11
@magpi:matrix.orgmagpiThe other day I compiled a CLI tool and sent it to someone else and they had to accept gatekeeper warnings before it would run; considering everything published by Apple says you need to sign things before they will run, I wondered how nix gets away with it. (My app loads some path-relative dylibs so maybe my situation is different)23:47:53
@abathur:matrix.orgabathurmmm, maybe quarantine depending on how it was sent? I'm not certain whether that applies at all on the CLI or not23:48:46
@abathur:matrix.orgabathursimilar post for that https://eclecticlight.co/2020/10/29/quarantine-and-the-quarantine-flag/23:49:35
@abathur:matrix.orgabathurI think that mostly comes down to what is downloading it? like, I think safari will set it, probably Mail, etc.23:50:04
@magpi:matrix.orgmagpiGood grief, that website is a goldmine!23:51:07
@abathur:matrix.orgabathurlapcatsoftware and mrmacintosh are good as well hmm23:52:11

Show newer messages


Back to Room ListRoom Version: 6