LnL7 / nix-darwin

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

nix-darwin doesnt build after updating flake #959

Closed nagy135 closed 4 months ago

nagy135 commented 4 months ago

Hi, im bit of a nix noob so maybe this is something obvious but i built my nix-darwin/nixvim/homemanager config and tried to nix flake update and after that it does no longer build with following error:

❯ git add . ; darwin-rebuild switch --flake .
building the system configuration...
warning: Git tree '/Users/viktornagy/Code/nix-darwin' is dirty
trace: warning: The option `options' defined in `<unknown-file>' has been renamed to `opts'.
error:
       … while calling the 'derivationStrict' builtin

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

       … while evaluating derivation 'darwin-system-24.11.20240526.e2dd4e1+darwin4.0bea822'
         whose name attribute is located at /nix/store/62ca8xfz3n92p57sdds15r4s07kyls6i-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20240526.e2dd4e1+darwin4.0bea822'

         at /nix/store/50n48z5hnfvcagwsd0g9q3sk92njvx97-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: Unsupported system: aarch64-darwin

can someone please help me figure out what the issue is? My flake is here

cpossinger commented 4 months ago

I'm getting this same error

nagy135 commented 4 months ago

i figured out mine... just add --show-trace to your rebuild switch --flake and look at where it fails. In my case i used dbeaver before updating, this update made it deprecated in favor of dbeaver-bin which has unsupported architecture for darwin. Im closing this, good luck!