!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
3 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeThere was also a change to enforce availability annotations.15:08:42
@reckenrode:matrix.orgRandy EckenrodeBut the missing symbols appear to be internal to Dovecot. Something in its build is getting confused.15:09:11
@saiko:knifepoint.netKatalin 🔪fwiw there is a “mostly done just needs a little polish” update to 2.4 or whatever and I’m already using it20:40:34
@saiko:knifepoint.netKatalin 🔪this is the PR, if you want to see if it works for you: https://github.com/NixOS/nixpkgs/pull/410912 I do have my own changeset that I run on my server that has diverged a bit but only in the nixos module so it shoulndn’t be necessary here20:48:55
4 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeIt’s amazing that Apple managed to successfully compile Swift 6.2 for release with Xcode. I got a bootstrap compiler to build with macros enabled. It crashes building the Swift Compiler Driver.00:52:54
@reckenrode:matrix.orgRandy Eckenrode Why would nativeBuildInputs use the dev output of a derivation? 02:11:10
@reckenrode:matrix.orgRandy Eckenrode Oh, I need to fixup nix-support. 02:20:39
@reckenrode:matrix.orgRandy Eckenrode
/nix/store/7x3jpimm3qaffhdcgj23rd51gpmy4p2f-apple-sdk-26.0/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface:34793:42: error: Using type 'Int' can cause metadata allocation or locks
04:48:13
@reckenrode:matrix.orgRandy Eckenrode
34791 |
34792 |   let queryVersion = (Int(major), Int(minor), Int(patch))
34793 |   let major32 = Int32(truncatingIfNeeded:Int(queryVersion.0))
      |                                          `- error: Using type 'Int' can cause metadata allocation or locks
34794 |   let minor32 = Int32(truncatingIfNeeded:Int(queryVersion.1))
34795 |   let patch32 = Int32(truncatingIfNeeded:Int(queryVersion.2))
04:50:31
@reckenrode:matrix.orgRandy EckenrodeThat looks really familiar. I swear I fixed something like this before.04:50:41
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/swiftlang/swift/pull/77780, but shouldn’t that be in Swift 6.2?05:09:55
@xoredg:matrix.orgxoredhmm I had aerospace and jankyborders through nix-darwin, I'm considering moving to hm so I can see the config and maybe get stylix support, I disabled the service on nix-darwin and yet even after telling me the packages were uninstalled, it is launching on login, jankyborders and all, am I assuming wrong that I don't need to do manual cleanup?05:12:13
@xoredg:matrix.orgxoredI can still see the daemons in ~/Library/LaunchAgents05:14:32
@xoredg:matrix.orgxoredmaybe it's a bug? while removing them it did ask show they were write-protected, but I didn't have to sudo or anything05:16:07
@isabel:isabelroses.comisabel changed their profile picture.16:41:41
@capypara:matrix.orgCapypara

Hi! A user for a flake of mine uses macOS. Unfortunately I don't own a Mac, so I have no idea of the nix-darwin ecosystem. They get this error when running an activation script. nixpkgs is the latest nixos-25.11 (but a week old one had the same result):

       last 9 log lines:
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > Traceback (most recent call last):
       >   File "/nix/store/5g45axkqi74cigpqpz3s9yayn80k6dv7-build-config.py", line 4, in <module>
       >     import yaml
       > ModuleNotFoundError: No module named 'yaml'
       For full logs, run:
         nix log /nix/store/rs6nnmijyfhy9p4q1d1iyf2w4a2j9c44-riptide-build-config.drv
17:15:28
@capypara:matrix.orgCapypara

nativeBuildInputs & buildPhase:

    nativeBuildInputs = [
      (pkgs.python314.withPackages (python-pkgs: [
        python-pkgs.pyyaml
        python-pkgs.mergedeep
      ]))
    ];

    buildPhase = ''
      runHook preBuild
      python3 \
        $src \
        ${lib.escapeShellArg (builtins.toJSON cfg)} \
        ${hostsFile} \
        ./config.yml
      runHook postBuild
    '';
17:15:45
@capypara:matrix.orgCapyparaAnybody got an idea what the problem here could be?17:15:55
@leona:leona.isleonahttps://github.com/NixOS/nixpkgs/issues/461884 fix will come in the next 1.5 weeks probably17:16:56
@capypara:matrix.orgCapyparaah okay! I thought those landed already, thanks!17:18:16
@leona:leona.isleonaAs nobody built something else, they need a full stdenv rebuild on darwin17:18:52
@capypara:matrix.orgCapyparaah! I see17:19:08
@reckenrode:matrix.orgRandy EckenrodeDarwin tries not to pull too much, but it needs Python during its bootstrap, which makes Python-related fixes into full rebuilds.19:23:11
@kfiz:matrix.sopado.dekfizYes. 22:25:52
@kfiz:matrix.sopado.dekfizI'll try this. Thanks.22:26:53
@toonn:matrix.orgtoonn .oO(Does Pypy change less often and is it capable enough?) 23:07:28
@toonn:matrix.orgtoonn (Just an intrusive thought : )) 23:07:47
@reckenrode:matrix.orgRandy EckenrodeIt’s a few versions behind CPython. The bootstrap story doesn’t look too bad. We would have to replace the top-level Python during the bootstrap.23:11:51
@reckenrode:matrix.orgRandy EckenrodeThere’s enough stuff that depends on CPython that updates have to go through staging anyway. It doesn’t seem worth the effort.23:12:29
@reckenrode:matrix.orgRandy EckenrodeSo PyPy, Rust, Go, Haskell, and what else all bootstrap from an upstream binary?23:14:01

Show newer messages


Back to Room ListRoom Version: 6