!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
26 May 2021
@sternenseemann:systemli.orgsterni (he/him)then we can enable aarch64-darwin hydra builders possibly15:32:26
@sternenseemann:systemli.orgsterni (he/him)etc.15:32:27
@sternenseemann:systemli.orgsterni (he/him)codegen of what?15:32:39
@kloenk:petabyte.devFinn Behrensnot sure how haskell is working, so the thingy ghc is outputing15:33:32
@thefloweringash:matrix.orgthefloweringash
In reply to @sternenseemann:systemli.org
no one working on haskell has any aarch64-darwin hardware
that's definitely not true
15:33:42
@sternenseemann:systemli.orgsterni (he/him)I meant “official” haskell maintainers :p15:35:16
@sternenseemann:systemli.orgsterni (he/him)
In reply to @kloenk:petabyte.dev
not sure how haskell is working, so the thingy ghc is outputing
ah I see, probably LLVM on aarch64-darwin
15:36:02
@kloenk:petabyte.devFinn Behrens
In reply to @kloenk:petabyte.dev

Sadly still seeing this:

    GEN    doc/manual/nix-build.1
  lowdown: sandbox_init: Operation not permitted
  lowdown: sandbox_init: Operation not permitted
I think/hope I found a better patch, Will send it to you when it compiled to the end. The buildsystem of lowdown has a flag for it
15:50:27
@daiderd:matrix.orgLnLlooks like nested sandboxing15:54:00
@kloenk:petabyte.devFinn Behrens

andi-: doing this as first thing in the configurePhase (preConfigurePhase should also work) fixed it for my:
echo "HAVE_SANDBOX_INIT=false" > configure.local

your fix sadly did not work on my system. Maybe I have a newer lowdown version

15:57:59
@kloenk:petabyte.devFinn BehrensHow is the current state regarding ssl/certs/ca-bundle.crt on macos. I remember change the nix-store-path of my last nix version to get it to download things. Is this still needed?15:59:33
@daiderd:matrix.orgLnLthe nix install should set NIX_SSL_CERT_FILE which points to the profile's cacert bundle16:04:13
@kloenk:petabyte.devFinn BehrensSo if id did not worked once, it will not work ever again?16:05:19
@daiderd:matrix.orgLnLdepends on what went wrong16:05:57
@kloenk:petabyte.devFinn BehrensIf I look into the nix-daemon.plist (I don't have a clue how launchtl works), I see that NIX_SSL_CERT_FILE is set to /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt. But as this is the nix install itself, the path does not exists, as nix does not include this path16:09:30
@daiderd:matrix.orgLnLthe installer installs both nix and cacert in the profile by default with nix-env -i 16:10:12
@kloenk:petabyte.devFinn Behrens I'm installing nix via nix upgrade-nix --nix-store-path-urls <nix-store> seems like this is broken in nix master? 16:11:20
@daiderd:matrix.orgLnLupgrade-nix only works when used exactly right in my experience16:12:09
@kloenk:petabyte.devFinn Behrensok, maybe that is the issue. How would you suggest me to update the nix version, if I have a nix store path of a nix master build16:12:47
@daiderd:matrix.orgLnLdepending on the type of install you'll need to run it as the local user or sudo -i16:13:26
@kloenk:petabyte.devFinn Behrenssystem, so I have a daemon, and a seperate apfs volume for /nix16:13:48
@daiderd:matrix.orgLnLand it doesn't have any logic for services so won't restart the daemon, etc.16:13:44
@daiderd:matrix.orgLnLregardless of the update if you don't have cacert installed in the default profile you'll probably want to recover that first16:15:37
@daiderd:matrix.orgLnLhopefully there's still one laying around in the store that you can nix-env -i <path> otherwise run nix-env as root with NIX_SSL_CERT_FILE set to some random cert bundle to bypass the daemon16:17:19
@kloenk:petabyte.devFinn BehrensI would like to not use nix-env, but nix profile. Will try around a bit, thanks for the starting points16:18:02
@daiderd:matrix.orgLnLsame with that, unless you can't pass direct store paths as installables anymore16:20:13
@kloenk:petabyte.devFinn Behrens
In reply to @daiderd:matrix.org
same with that, unless you can't pass direct store paths as installables anymore
It's a bit more tricky, but last time I checked it worked as well
16:20:37
@kloenk:petabyte.devFinn BehrensWorked very well. Now have a dirty nix, and a ssl cert without remounting the store rw :-).16:31:19
@kloenk:petabyte.devFinn Behrens LnL: ++ (we need a bot xD) 16:31:26
@r_i_s:matrix.orgris_is the darwin sandbox enabled on hydra?19:23:27

Show newer messages


Back to Room ListRoom Version: 6