!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1179 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
26 May 2021
@kloenk:petabyte.devFinn Behrens someting involving sandboxing. this is mainly happening, when building github:nixos/nix#packages.aarch64-darwin.nix 15:11:30
@andi:kack.itandi-
      # nested sandboxing doesn't seem to work so lets disable the feature in the build
      lowdown = super.lowdown.overrideAttrs (_: {
        postConfigure = ''
          for file in *.c; do
                  sed -e s/HAVE_SANDBOX/HAVE_NO_SANDBOX_SHIT/g -i $file
          done
        '';
      });
15:11:44
@andi:kack.itandi-I have that in my macbook specific config15:11:49
@kloenk:petabyte.devFinn Behrens
In reply to @sternenseemann:systemli.org
also you could always downgrade to nix stable :p
but then I can't load my flakes. And I'm not able to manage my nix path (to layzie xD)
15:11:59
@kloenk:petabyte.devFinn Behrens
In reply to @andi:kack.it
      # nested sandboxing doesn't seem to work so lets disable the feature in the build
      lowdown = super.lowdown.overrideAttrs (_: {
        postConfigure = ''
          for file in *.c; do
                  sed -e s/HAVE_SANDBOX/HAVE_NO_SANDBOX_SHIT/g -i $file
          done
        '';
      });
nice, just have to get it into nix, as the use an own version of lowdown :-)
15:12:27
@sternenseemann:systemli.orgsterni (he/him)aarch64-darwin builds are sandboxed?!15:12:51
@sternenseemann:systemli.orgsterni (he/him)or what is this relating to15:12:54
@andi:kack.itandi-I'd happily PR against nixpkgs but not against Nix. Those times are past..15:12:54
@andi:kack.itandi- sterni (he/him): I believe so to some degree but you can't nest it. 15:13:14
@kloenk:petabyte.devFinn Behrens
In reply to @andi:kack.it
I'd happily PR against nixpkgs but not against Nix. Those times are past..
I can't say I don't know what you are talking about xD
15:13:18
@kloenk:petabyte.devFinn Behrens
In reply to @sternenseemann:systemli.org
aarch64-darwin builds are sandboxed?!
I think lowdown create a sandbox in an own way somehow
15:13:39
@sternenseemann:systemli.orgsterni (he/him) andi-: yeah clang 7 is too old for no-semantic-interposition 15:14:22
@sternenseemann:systemli.orgsterni (he/him)
In reply to @kloenk:petabyte.dev
I think lowdown create a sandbox in an own way somehow
…that doesn't work on aarch64-darwin, but on x86_64-darwin?
15:14:54
@andi:kack.itandi-@sterni: Do we have a way to detect that without hardcoding yet another llvm version lookup everywhere?15:14:54
@kloenk:petabyte.devFinn Behrens
In reply to @sternenseemann:systemli.org
…that doesn't work on aarch64-darwin, but on x86_64-darwin?
seems like it, I did manage to build nix master for x86 but not for arm
15:15:21
@sternenseemann:systemli.orgsterni (he/him)
In reply to @andi:kack.it
@sterni: Do we have a way to detect that without hardcoding yet another llvm version lookup everywhere?
better than stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "<whatever the min version is>"?
15:15:38
@andi:kack.itandi-Yes, I dislike Clang but it clutters all the derivations with logic like that..15:16:02
@andi:kack.itandi-Companies praise Clang for being great and all.. I am just like "ugh, why?"15:16:20
@sternenseemann:systemli.orgsterni (he/him) andi-: you could also just not care about darwin for a few weeks 15:16:26
@sternenseemann:systemli.orgsterni (he/him)and hope the clang upgrade is done by then15:16:34
@andi:kack.itandi- sterni (he/him): I have to work on a Darwin box :P 15:16:42
@kloenk:petabyte.devFinn Behrens I lost track of the bootstrap tarball. Where is it currently. Do I still have to use github:thefloweringash/nixpkgs/aarch64-darwin-bootstrap-tools as my nixpkgs, or is it in master/staging? 15:18:50
@thefloweringash:matrix.orgthefloweringashit's in master!15:19:09
@kloenk:petabyte.devFinn BehrensHope ghc has support for arm soon. Don't like that I can't compile exa without a great amount of work15:20:02
@andi:kack.itandi- thefloweringash: do you mind popping into #infrastructure:nixos.org? I asked Rob if the builders there are also panicing. Would be good to figure that out but my Mac foo is too weak :D 15:21:36
@kloenk:petabyte.devFinn Behrens
In reply to @kloenk:petabyte.dev
nice, just have to get it into nix, as the use an own version of lowdown :-)

Sadly still seeing this:

    GEN    doc/manual/nix-build.1
  lowdown: sandbox_init: Operation not permitted
  lowdown: sandbox_init: Operation not permitted
15:23:15
@sternenseemann:systemli.orgsterni (he/him)
In reply to @kloenk:petabyte.dev
Hope ghc has support for arm soon. Don't like that I can't compile exa without a great amount of work
it does? you just need to make sure it has llvm available
15:26:00
@sternenseemann:systemli.orgsterni (he/him)someone should just add aarch64-darwin to platforms for ghc and see how it goes I guess15:26:18
@sternenseemann:systemli.orgsterni (he/him)aarch64-linux is working perfectly fine15:26:25
@kloenk:petabyte.devFinn Behrensoh? last time I checked the website of ghc the said the are still building some fancy new shit15:26:52

Show newer messages


Back to Room ListRoom Version: 6