| 13 Nov 2025 |
niklaskorz | the correct one is arm64-apple-darwin | 09:49:31 |
niklaskorz | but honestly just delete this entirely | 09:49:35 |
niklaskorz | there is no reason to set this | 09:49:38 |
purrtner | 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 | * 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 | Thank you! Do those unnecessary entries pin to an older nixpkgs as Tristan pointed out? | 10:28:48 |
niklaskorz | no | 10:28:58 |
purrtner | * 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 | they completely invalidate your whole package tree | 10:29:04 |
niklaskorz | and are incorrect | 10:29:06 |
niklaskorz | well not nix.enable = false; | 10:29:58 |
tao | Ok I'll give this a shot, thank you | 10:30:07 |
niklaskorz | I suppose you set that because you are using determinate nix | 10:30:05 |
niklaskorz | but definitely remove nixpkgs.hostPlatform | 10:30:17 |
tao | I'm actually using Lix | 10:30:36 |
niklaskorz | oh, interesting | 10:30:47 |
niklaskorz | in that case you probably want nix.enable = true and have it auto update your lix installation | 10:30:58 |
niklaskorz | but that also needs settings nix.package to lix | 10:31:04 |
niklaskorz | you can find an explanation on how to do that here: https://lix.systems/add-to-config/#flake-based-configurations | 10:31:48 |
niklaskorz | basically it's just nix.package = pkgs.lixPackageSets.stable.lix; if you don't care about having nixpkgs-review and other nix-based tools use lix | 10:40:00 |
purrtner | Last week I submitted a fix for a package, that wont build on darwin anymore.
Unfortunately the package has no maintainer whatsoever. Is the trick just to be patient? I have no issue with it, since I can build it locally using an overlay, but I think, it would be nice to have it building easily for everyone again. | 10:40:52 |
niklaskorz | If you got no reviews after a week, you can post it on #review-requests:nixos.org | 10:50:23 |
Randy Eckenrode | LLVM dropped support for the aarch64-apple-darwin triple in LLVM 20. I believe Tristan tried to get them to keep support, but they said no. | 11:36:42 |
niklaskorz | I wonder if it's worth having an explicit assertion for anyone that wrongly has this set | 12:01:50 |
purrtner | Thanks! | 13:06:44 |
debtquity | aarch64 cross compilation on m4 mac is cooking rn at 15G | 21:48:17 |
mio | python is possibly broken
> python3.13(9980,0x1fba16240) malloc: *** error for object 0x103902de0: pointer being freed was not allocated
> python3.13(9980,0x1fba16240) malloc: *** set a breakpoint in malloc_error_break to debug
https://github.com/NixOS/nixpkgs/issues/461396
| 23:27:20 |
| 14 Nov 2025 |
Sarah Clark | I added notes to your bug. TL;dr protobuf is looking like the probable culprit | 00:48:44 |
debtquity | So I use the nix.linux-builder for building aarch64-linux dependencies. But I am running into an issue on remote machines not trusting the generated paths since they are untrusted.
Even on my local machine, nix store verify --all is showing they are untrusted:
# nix store verify --all
...
path '/nix/store/0mapnivw6b3678v1b336j9dfxwjhmwc5-unit-dhcpcd.service' is untrusted
path '/nix/store/wy485gdjl7xwlaq5zz2aq55i3yjxry2b-dhcpcd.conf' is untrusted
path '/nix/store/36yijh6hzrg2r45sydbys92wrlwx5gs6-unit-systemd-fsck-.service' is untrusted
path '/nix/store/sr1pdx59gjbh949ai57lg6nzj19pgrpz-unit-script-network-setup-start' is untrusted
path '/nix/store/1j0930fgfwqgbxl517c08v64fmg0bnij-X-Restart-Triggers-systemd-timesyncd' is untrusted
path '/nix/store/421h6j088bq5q9qakabrsh004v2wgxp2-unit-network-setup.service' is untrusted
...
How do I configure the linux builder to sign the generated files so I can distribute the public key to both my local and remote machines?
| 03:49:27 |
debtquity | this is what i observe with nixos-rebuild-ng
# nixos-rebuild-ng switch --flake .#rpi --ask-sudo-password --sudo --target-host "d@rpi"
[sudo] password for d@rpi:
building the system configuration...
warning: Git tree '/Users/d/.config/nix' is dirty
(d@rpi) Password:
(d@rpi) Password:
copying 6 paths...
copying path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' to 'ssh://d@rpi'...
error: cannot add path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' because it lacks a signature by a trusted key
error: unexpected end-of-file
Command 'nix-copy-closure --to d@rpi /nix/store/pjsmcl4633j54l4chsgqzv689kbkcrmi-nixos-system-rpi-25.11.20251005.d7f52a7' returned non-zero exit status 1.
| 03:51:06 |