LnL7 / nix-darwin

nix modules for darwin
MIT License
2.82k stars 431 forks source link

Always fail to pull nix-darwin from github? #925

Closed tmpm697 closed 5 months ago

tmpm697 commented 5 months ago

hi, I switch flake quite of often using nix-darwin to update my macos, but 50% of time I got this error when switch:

building the system configuration...
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'darwin-system-23.11.20240405.72da83d+darwin4.36524ad'
         whose name attribute is located at /nix/store/8mk40j3mfrvndrnh89azngcgdgr1fidi-source/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-23.11.20240405.72da83d+darwin4.36524ad'

         at /nix/store/87clbsxcf2wawlhi49k96ffb805sa3v0-source/modules/system/default.nix:95:7:

           94|
           95|       activationScript = cfg.activationScripts.script.text;
             |       ^
           96|       activationUserScript = cfg.activationScripts.userScript.text;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: getting status of '/nix/store/v13h14n6y2m03wm8yjnpd3ivxsf08k53-source': No such file or directory

Is there a way to avoid this? or this is from github?

If from github we need to find a way to avoid fail build dues to can't pull source.

tmpm697 commented 5 months ago

check this https://discourse.nixos.org/t/nix-2-20-incompatible-with-modern-git-local-flake-cant-build/40981/6

this somehow caused this issue.