!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
12 Nov 2025
@reckenrode:matrix.orgRandy EckenrodeRedacted or Malformed Event22:06:55
@reckenrode:matrix.orgRandy Eckenrode * 22:08:29
@niklaskorz:matrix.orgniklaskorzhm do I understand correctly that Apple clang was already prio 1 and that LLVM clang refers to the non-Xcode variant?22:16:11
@reckenrode:matrix.orgRandy EckenrodeI think so. I don’t know how Homebrew handles specifying a compiler where Xcode doesn’t work. I can’t think of a situation where you would want to use upstream clang in lieu of Xcode if you actually have access to Xcode.22:17:36
@reckenrode:matrix.orgRandy EckenrodeMaybe to use some other libc++, but Xcode clang can probably use it.22:17:54
13 Nov 2025
@samasaur:matrix.orgsamasaurnewer language features, right?00:10:26
@reckenrode:matrix.orgRandy EckenrodeApple’s Clang is not that far behind upstream.00:18:42
@samasaur:matrix.orgsamasaurYeah i think that is rarely a long-term issue but I remember it being necessary for btop in macports00:30:58
@reckenrode:matrix.orgRandy Eckenrodebtop needed libc++ features that weren’t available until LLVM 16.00:33:04
@tao:beeper.comtao joined the room.05:27:51
@tao:beeper.comtaoHi I've been trying to debug an llvm build failure on macOS with a maintainer of the llvm package over on the nixpkgs GitHub repo. They insist the build failure is a result of an older nixpkgs I must be running but my flake pins nixpkgs to unstable. They suggested I pop over here to see if the community can help me. Here's the GitHub issue where we talk through the causes: https://github.com/NixOS/nixpkgs/issues/460725#issuecomment-3523848126 and here's my repo: https://github.com/worldofgeese/fleek-nix-darwin05:31:12
@niklaskorz:matrix.orgniklaskorzWhat Tristan was asking for in that issue is that you reduce the config to a very small one that still fails09:39:56
@niklaskorz:matrix.orgniklaskorzIt definitely is too much to expect from mantainers to build a 9gb darwin config to troubleshoot this issue09:40:19
@niklaskorz:matrix.orgniklaskorz(but I'm doing it right now nonetheless, which is why I know the size in the first place)09:40:51
@niklaskorz:matrix.orgniklaskorz* It definitely is too much to expect from maintainers to build a 9gb darwin config to troubleshoot this issue09:42:11
@niklaskorz:matrix.orgniklaskorzso yeah, it's your config, not an issue with nixpkgs09:48:09
@niklaskorz:matrix.orgniklaskorz

why did you add these in the first place:

  nix.enable = false;
  nixpkgs.hostPlatform = {
    config = "aarch64-apple-darwin";
    system = "aarch64-darwin";
  };
09:49:15
@niklaskorz:matrix.orgniklaskorz aarch64-apple-darwin is the wrong host triple 09:49:23
@niklaskorz:matrix.orgniklaskorz the correct one is arm64-apple-darwin 09:49:31
@niklaskorz:matrix.orgniklaskorzbut honestly just delete this entirely09:49:35
@niklaskorz:matrix.orgniklaskorzthere is no reason to set this09:49:38
@purrtner:matrix.orgpurrtner

Hi Ben, sorry for taking so long to respond. It seems, there has been an upstream change, that fixed the issue.

The error was this one:

Local evaluation for computing rebuilds
$ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f <nixpkgs> --nix-path nixpkgs=/Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs nixpkgs-overlays=/private/tmp/nix-shell-1673-462192242/tmpa3pj3v9z -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
error:
       … while querying the derivation named 'flutter-wrapped-3.29.3-sdk-links'

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-wrapped-3.29.3-sdk-links'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'buildCommand' of derivation 'flutter-wrapped-3.29.3-sdk-links'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/trivial-builders/default.nix:80:17:
           79|         enableParallelBuilding = true;
           80|         inherit buildCommand name;
             |                 ^
           81|         passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-3.29.3-unwrapped'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'buildPhase' of derivation 'flutter-3.29.3-unwrapped'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/flutter.nix:89:5:
           88|
           89|     buildPhase = ''
             |     ^
           90|       runHook preBuild

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-tools-3.29.3'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'dartRuntimeCommand' of derivation 'flutter-tools-3.29.3'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/dart/build-dart-application/default.nix:146:9:
          145|         dartOutputType
          146|         dartRuntimeCommand
             |         ^
          147|         dartCompileFlags

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-engine-cf56914b326edb0ccb123ffdc60f00060bd513fa-dart'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'buildCommand' of derivation 'flutter-engine-cf56914b326edb0ccb123ffdc60f00060bd513fa-dart'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/trivial-builders/default.nix:80:17:
           79|         enableParallelBuilding = true;
           80|         inherit buildCommand name;
             |                 ^
           81|         passAsFile = [ "buildCommand" ] ++ (derivationArgs.passAsFile or [ ]);

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-engine-release-cf56914b326edb0ccb123ffdc60f00060bd513fa'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'src' of derivation 'flutter-engine-release-cf56914b326edb0ccb123ffdc60f00060bd513fa'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/package.nix:93:19:
           92|   pname = "flutter-engine-${runtimeMode}${lib.optionalString (!isOptimized) "-unopt"}";
           93|   inherit version src patches;
             |                   ^
           94|

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'flutter-engine-source-cf56914b326edb0ccb123ffdc60f00060bd513fa-aarch64-darwin-aarch64-darwin'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'nativeBuildInputs' of derivation 'flutter-engine-source-cf56914b326edb0ccb123ffdc60f00060bd513fa-aarch64-darwin-aarch64-darwin'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:593:13:
          592|             depsBuildBuild = elemAt (elemAt dependencies 0) 0;
          593|             nativeBuildInputs = elemAt (elemAt dependencies 0) 1;
             |             ^
          594|             depsBuildTarget = elemAt (elemAt dependencies 0) 2;

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'cipd'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'text' of derivation 'cipd'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/trivial-builders/default.nix:129:13:
          128|           inherit
          129|             text
             |             ^
          130|             executable

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'cipd-7120a6a515089a3ff5d1f61ff4ee17750dc038af'
         whose name attribute is located at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'src' of derivation 'cipd-7120a6a515089a3ff5d1f61ff4ee17750dc038af'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:53:13:
           52|           {
           53|             src = fetchurl {
             |             ^
           54|               name = "cipd-${cipdCommit}-unwrapped";

       … while calling a functor (an attribute set with a '__functor' attribute)
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:53:19:
           52|           {
           53|             src = fetchurl {
             |                   ^
           54|               name = "cipd-${cipdCommit}-unwrapped";

       … from call site
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/lib/trivial.nix:1009:5:
         1008|     # TODO: Should we add call-time "type" checking like built in?
         1009|     __functor = self: f;
             |     ^
         1010|     __functionArgs = args;

       … while calling anonymous lambda
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/lib/customisation.nix:863:9:
          862|       (
          863|         fpargs:
             |         ^
          864|         transformDrv (

       … from call site
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/lib/customisation.nix:864:9:
          863|         fpargs:
          864|         transformDrv (
             |         ^
          865|           constructDrv (extendsWithExclusion excludeDrvArgNames extendDrvArgs (toFunction fpargs))

       … while calling 'id'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/lib/trivial.nix:40:8:
           39|   */
           40|   id = x: x;
             |        ^
           41|

       … from call site
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/lib/customisation.nix:865:11:
          864|         transformDrv (
          865|           constructDrv (extendsWithExclusion excludeDrvArgNames extendDrvArgs (toFunction fpargs))
             |           ^
          866|         )

       … while calling 'mkDerivation'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:66:18:
           65|   */
           66|   mkDerivation = fnOrAttrs: makeDerivationExtensible (toFunction fnOrAttrs);
             |                  ^
           67|

       … from call site
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:66:29:
           65|   */
           66|   mkDerivation = fnOrAttrs: makeDerivationExtensible (toFunction fnOrAttrs);
             |                             ^
           67|

       … while calling 'makeDerivationExtensible'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:77:5:
           76|   makeDerivationExtensible =
           77|     rattrs:
             |     ^
           78|     let

       … from call site
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:138:22:
          137|
          138|       finalPackage = mkDerivationSimple overrideAttrs args;
             |                      ^
          139|

       … while calling 'mkDerivationSimple'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:773:5:
          772|     # * [package attributes]: https://nixos.org/manual/nix/stable/glossary#package-attribute-set
          773|     {
             |     ^
          774|

       … in the condition of the assert statement
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:801:5:
          800|     # Policy on acceptable hash types in nixpkgs
          801|     assert
             |     ^
          802|       attrs ? outputHash

       … in the right operand of the IMPL (->) operator
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:803:7:
          802|       attrs ? outputHash
          803|       -> (
             |       ^
          804|         let

       … while evaluating a branch condition
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:807:9:
          806|         in
          807|         if algo == "md5" then throw "Rejected insecure ${algo} hash '${attrs.outputHash}'" else true
             |         ^
          808|       );

       … while evaluating the attribute 'outputHashAlgo'
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:262:23:
          261|       # New-style output content requirements.
          262|       inherit (hash_) outputHashAlgo outputHash;
             |                       ^
          263|

       … while evaluating a branch condition
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:175:9:
          174|       hash_ =
          175|         if
             |         ^
          176|           with lib.lists;

       … while calling the 'lessThan' builtin
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:185:13:
          184|             ]
          185|           ) > 1
             |             ^
          186|         then

       … while calling the 'length' builtin
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:177:11:
          176|           with lib.lists;
          177|           length (
             |           ^
          178|             filter (s: s != "") [

       … while calling the 'filter' builtin
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:178:13:
          177|           length (
          178|             filter (s: s != "") [
             |             ^
          179|               hash

       … while calling anonymous lambda
         at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/build-support/fetchurl/default.nix:178:21:
          177|           length (
          178|             filter (s: s != "") [
             |                     ^
          179|               hash

       error: attribute 'macos-arm64' missing
       at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:56:22:
           55|               url = "https://chrome-infra-packages.appspot.com/client?platform=${stdenv-constants.platform}&version=git_revision:${cipdCommit}";;
           56|               hash = cipdHashes.${stdenv-constants.platform};
             |                      ^
           57|             };
       Did you mean mac-arm64?
https://github.com/NixOS/nixpkgs/pull/459527 failed to build: Failed to list packages: nix-env failed with exit code 1

This Commit seems to have fixed the error. https://github.com/NixOS/nixpkgs/commit/78959ee6e3db1762024c4f8068cc9db57b8d5a6e#diff-a02d8cf7491f5e3faf1245b0bce2bad970c5924fd4b67e954d04cef7ee13147e

I still have no idea, why it wasn't broken for others, anyway...

10:22:04
@purrtner:matrix.orgpurrtner *

Hi Ben, sorry for taking so long to respond. It seems, there has been an upstream change, that fixed the issue.

The error was this one:

Local evaluation for computing rebuilds
$ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f <nixpkgs> --nix-path nixpkgs=/Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs nixpkgs-overlays=/private/tmp/nix-shell-1673-462192242/tmpa3pj3v9z -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
error:
       … while querying the derivation named 'flutter-wrapped-3.29.3-sdk-links'

       … 

       error: attribute 'macos-arm64' missing
       at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:56:22:
           55|               url = "https://chrome-infra-packages.appspot.com/client?platform=${stdenv-constants.platform}&version=git_revision:${cipdCommit}";;
           56|               hash = cipdHashes.${stdenv-constants.platform};
             |                      ^
           57|             };
       Did you mean mac-arm64?
https://github.com/NixOS/nixpkgs/pull/459527 failed to build: Failed to list packages: nix-env failed with exit code 1

This Commit seems to have fixed the error. https://github.com/NixOS/nixpkgs/commit/78959ee6e3db1762024c4f8068cc9db57b8d5a6e#diff-a02d8cf7491f5e3faf1245b0bce2bad970c5924fd4b67e954d04cef7ee13147e

I still have no idea, why it wasn't broken for others, anyway...

10:28:48
@tao:beeper.comtaoThank you! Do those unnecessary entries pin to an older nixpkgs as Tristan pointed out?10:28:48
@niklaskorz:matrix.orgniklaskorzno10:28:58
@purrtner:matrix.orgpurrtner *

Hi Ben, sorry for taking so long to respond. It seems, there has been an upstream change, that fixed the issue.

The error was this one:

Local evaluation for computing rebuilds
$ nix-env --extra-experimental-features no-url-literals --option system aarch64-darwin -f <nixpkgs> --nix-path nixpkgs=/Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs nixpkgs-overlays=/private/tmp/nix-shell-1673-462192242/tmpa3pj3v9z -qaP --xml --out-path --show-trace --no-allow-import-from-derivation
error:
       … while querying the derivation named 'flutter-wrapped-3.29.3-sdk-links'

       ……… 

       error: attribute 'macos-arm64' missing
       at /Users/edean/.cache/nixpkgs-review/pr-459527-1/nixpkgs/pkgs/development/compilers/flutter/engine/tools.nix:56:22:
           55|               url = "https://chrome-infra-packages.appspot.com/client?platform=${stdenv-constants.platform}&version=git_revision:${cipdCommit}";;
           56|               hash = cipdHashes.${stdenv-constants.platform};
             |                      ^
           57|             };
       Did you mean mac-arm64?
https://github.com/NixOS/nixpkgs/pull/459527 failed to build: Failed to list packages: nix-env failed with exit code 1

This Commit seems to have fixed the error. https://github.com/NixOS/nixpkgs/commit/78959ee6e3db1762024c4f8068cc9db57b8d5a6e#diff-a02d8cf7491f5e3faf1245b0bce2bad970c5924fd4b67e954d04cef7ee13147e

I still have no idea, why it wasn't broken for others, anyway...

10:29:02
@niklaskorz:matrix.orgniklaskorzthey completely invalidate your whole package tree10:29:04
@niklaskorz:matrix.orgniklaskorzand are incorrect10:29:06
@niklaskorz:matrix.orgniklaskorz well not nix.enable = false; 10:29:58
@tao:beeper.comtaoOk I'll give this a shot, thank you10:30:07

Show newer messages


Back to Room ListRoom Version: 6