dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.79k stars 113 forks source link

time-machine-2.15.0 not supported for interpreter python3.9 #124

Closed aaronmott closed 3 days ago

aaronmott commented 1 week ago

Just more of an fyi, but setting up a new Mac today using your WONDERFUL guide.

everything was fine until the build, seems the latest time-machine is not supported in python 3.9

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'darwin-system-24.11.20241111.dc460ec+darwin4.6c71c49'
         whose name attribute is located at /nix/store/4r8s42c9mwfvgdlxv0izb1cmlzrsb5nz-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20241111.dc460ec+darwin4.6c71c49'
         at /nix/store/fxgkrsyv9h8k5wk3dm7ya91n3m7dn8mb-source/modules/system/default.nix:97:7:
           96|
           97|       activationScript = cfg.activationScripts.script.text;
             |       ^
           98|       activationUserScript = cfg.activationScripts.userScript.text;

       … while evaluating the option `system.activationScripts.script.text':

       … while evaluating definitions from `/nix/store/fxgkrsyv9h8k5wk3dm7ya91n3m7dn8mb-source/modules/system/activation-scripts.nix':

       … while evaluating the option `system.activationScripts.applications.text':

       … while evaluating definitions from `/nix/store/fxgkrsyv9h8k5wk3dm7ya91n3m7dn8mb-source/modules/system/applications.nix':

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

       error: time-machine-2.15.0 not supported for interpreter python3.9

I bumped to the entries in ~/nixos-config/modules/shared/packagex.nix to the following:

  python312
  python312Packages.virtualenv # globally install virtualenv

It's currently back to building just fine!

dustinlyons commented 3 days ago

Oops, forgot to fix this in the template. Just updated here: https://github.com/dustinlyons/nixos-config/commit/8a33d9f58180c108fc59b3e73b339fd3e54ca65b

Thanks!