I ran the following command:
sudo env \
http_proxy=http://127.0.0.1:10709 \
https_proxy=http://127.0.0.1:10709\
nixos-rebuild switch --verbose --keep-going
I encountered the following errors:
downloading 'https://nix-node.cachix.org/l0izk7srb6hk233bbs3zd19fzr4ym5gy.narinfo'...
downloading 'https://nix-node.cachix.org/qdz78yws23ndci6g86rq5ffhc770wfl4.narinfo'...
these 10 derivations will be built:
/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv
/nix/store/kbcqspdg16z5wfwniab3kn0rs0rp0m4g-facetimehd-calibration-5.1.5769-zstd.drv
/nix/store/glklhjr78xjw6lsqsvyc7m1bw0xlv8y0-firmware.drv
/nix/store/l2adzb8hxh8y8y3arzw3pm4kwxa9wnpw-etc-modprobe.d-firmware.conf.drv
/nix/store/gsgnlcrhh5mn0n7367g2dbnp4h1ygw2w-etc.drv
/nix/store/j6ixqxzxxcrlx4bhndm4axavy2nf5cnr-linux-7.0.9-modules-shrunk.drv
/nix/store/nzrr6ssgs1jdq2xwgb0h9swpyr0lhl0d-closure-info.drv
/nix/store/x7rmv3ldsawaf12ag5yq9x7kgq2hpsqf-initrd-linux-7.0.9.drv
/nix/store/vf4drpx16f16kaff2p9kqa9y4jpvprmy-boot.json.drv
/nix/store/41sy7ifmq0wis363cp4mdw8axfxlilhm-nixos-system-nixos-25.11.11278.b77b3de87756.drv
building '/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv'...
structuredAttrs is enabled
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 00:10 0curl: (6) Could not resolve host: download.info.apple.com
error: Cannot build '/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv'.
Reason: builder failed with exit code 6.
Output paths:
/nix/store/l0izk7srb6hk233bbs3zd19fzr4ym5gy-facetimehd-calibration-5.1.5769
error: Cannot build '/nix/store/kbcqspdg16z5wfwniab3kn0rs0rp0m4g-facetimehd-calibration-5.1.5769-zstd.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/x5y16bcipmayavmy0vzj8qsx8rjxnwb0-facetimehd-calibration-5.1.5769-zstd
error: Cannot build '/nix/store/glklhjr78xjw6lsqsvyc7m1bw0xlv8y0-firmware.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/pjbfp4xfx68xb12zzj25m11q4wky4sq0-firmware
error: Cannot build '/nix/store/l2adzb8hxh8y8y3arzw3pm4kwxa9wnpw-etc-modprobe.d-firmware.conf.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/bz1m7ymaz2rg9kinm5gw953j37zbv6cb-etc-modprobe.d-firmware.conf
error: Cannot build '/nix/store/j6ixqxzxxcrlx4bhndm4axavy2nf5cnr-linux-7.0.9-modules-shrunk.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/ppjngy0n4h2acvsq1j9zx0y8i6sk24hn-linux-7.0.9-modules-shrunk
error: Cannot build '/nix/store/nzrr6ssgs1jdq2xwgb0h9swpyr0lhl0d-closure-info.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/qdz78yws23ndci6g86rq5ffhc770wfl4-closure-info
error: Cannot build '/nix/store/gsgnlcrhh5mn0n7367g2dbnp4h1ygw2w-etc.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/nmxpc84rhrnvfviv8b2si9apan0psj78-etc
error: Cannot build '/nix/store/x7rmv3ldsawaf12ag5yq9x7kgq2hpsqf-initrd-linux-7.0.9.drv'.
Reason: 2 dependencies failed.
Output paths:
/nix/store/z8d5fbni4q0i40ahhc5lq5wxnyqwd34f-initrd-linux-7.0.9
error: Cannot build '/nix/store/vf4drpx16f16kaff2p9kqa9y4jpvprmy-boot.json.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/lc0479p02dw5hgvk6r73m40ana35bdb7-boot.json
error: Cannot build '/nix/store/41sy7ifmq0wis363cp4mdw8axfxlilhm-nixos-system-nixos-25.11.11278.b77b3de87756.drv'.
Reason: 4 dependencies failed.
Output paths:
/nix/store/9hv2mk4bh1nljv0lqssp5kmk8w4a2fb6-nixos-system-nixos-25.11.11278.b77b3de87756
Traceback (most recent call last):
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 352, in main
execute(sys.argv)
~~~~~~~^^^^^^^^^^
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/__init__.py", line 315, in execute
services.build_and_activate_system(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
action=action,
^^^^^^^^^^^^^^
...<6 lines>...
grouped_nix_args=grouped_nix_args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/services.py", line 301, in build_and_activate_system
path_to_config = _build_system(
attr=attr,
...<5 lines>...
grouped_nix_args=grouped_nix_args,
)
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/services.py", line 189, in _build_system
path_to_config = nix.build(
attr,
...<2 lines>...
| grouped_nix_args.build_flags,
)
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/nix.py", line 66, in build
r = run_wrapper(run_args, stdout=PIPE)
File "/nix/store/lmidp4200i6dkbmdb127bm9dz2igngks-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/process.py", line 137, in run_wrapper
r = subprocess.run(
run_args,
...<7 lines>...
**kwargs,
)
File "/nix/store/sdfysgb89zdysrknjavcr0crs4qxpk8r-python3-3.13.12/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nix-build', '<nixpkgs/nixos>', '--attr', 'config.system.build.toplevel', '--no-out-link', '-v', '--keep-going']' returned non-zero exit status 1.
The same happens when I run the following command:
milad@nixos~> sudo env https_proxy=http://127.0.0.1:10709 \
http_proxy=http=//127.0.0.1:10709 \
nix-store --realise /nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv
this derivation will be built:
/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv
building '/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv'...
structuredAttrs is enabled
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 00:10 0curl: (6) Could not resolve host: download.info.apple.com
error: builder for '/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv' failed with exit code 6
Is there anyway to exclude this package from my nixos builds?
More investigations
milad@nixos~> # Find the build script (it's one of the .drv args)
nix derivation show '/nix/store/90qm8qfqjhwylqm4fg8m805q181dqsq8-facetimehd-calibration-5.1.5769.drv^*' | jq '.[].args'
[
"-e",
"/nix/store/l622p70vy8k5sh7y5wizi5f2mic6ynpg-source-stdenv.sh",
"/nix/store/fgkkd2sw3jk1p1lkxbkr9a5jk0jw01i1-builder.sh"
]
milad@nixos~> cat /nix/store/fgkkd2sw3jk1p1lkxbkr9a5jk0jw01i1-builder.sh
# Described on https://github.com/patjak/facetimehd/wiki/Extracting-the-sensor-calibration-files
#
# The whole download is 518MB; the deflate stream we're interested in is 1.2MB.
urlRoot="https://download.info.apple.com/Mac_OS_X/031-30890-20150812-ea191174-4130-11e5-a125-930911ba098f"
curl --insecure -o bootcamp.zip "$urlRoot/bootcamp$version.zip" -r 2338085-3492508
# Add appropriate headers and footers so that zcat extracts cleanly
{ printf '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x00'
cat bootcamp.zip
printf '\x51\x1f\x86\x78\xcf\x5b\x12\x00'
} | zcat > AppleCamera64.exe
unrar x AppleCamera64.exe AppleCamera.sys
# These offsets and sizes are from the wiki also
dd bs=1 skip=1663920 count=33060 if=AppleCamera.sys of=9112_01XX.dat
dd bs=1 skip=1644880 count=19040 if=AppleCamera.sys of=1771_01XX.dat
dd bs=1 skip=1606800 count=19040 if=AppleCamera.sys of=1871_01XX.dat
dd bs=1 skip=1625840 count=19040 if=AppleCamera.sys of=1874_01XX.dat
mkdir -p "$out/lib/firmware/facetimehd"
cp -a *.dat "$out/lib/firmware/facetimehd"