[Bug]: Missing aarch64-darwin attributes (support for MacOS M1)
Current Behavior
First of all, thank you for the package!
I'm still learning about it, but I use nix-darwin and home-manager in an M1 MackBook Pro.
I followed the installation instructions and got this error:
error: flake 'jupyterWith' does not provide attribute 'apps.aarch64-darwin.default', 'defaultApp.aarch64-darwin', 'packages.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin'
Is it because aarch64-darwin is not supported? Will it ever be?
Expected Behavior
The notebook runs.
Steps To Reproduce
Follow the installation instructions.
OS
- system: `"aarch64-darwin"`
- host os: `Darwin 22.1.0, macOS 13.0.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.11.1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Version
Can't tell
Additional Context
No response
Relevant log output
No response
I get similar behavior with an Intel Mac:
error: flake 'path:XYZ' does not provide attribute 'apps.x86_64-darwin.default', 'defaultApp.x86_64-darwin', 'packages.x86_64-darwin.default' or 'defaultPackage.x86_64-darwin'
Any workaround on this ?
Looks like not even x86_64-darwin is currently supported:
https://github.com/tweag/jupyenv/blob/3ad2c9512c9efd586cf63adde454e734a8ce049c/flake.nix#L55-L59
It's a little bit strange that Getting Started contains instructions for installing Nix on macOS though.
Enabling it for aarch64-darwin worked for me... I wonder if the TODO is outdated?
diff --git c/flake.nix w/flake.nix
index 47948a0..9f20ca2 100644
--- c/flake.nix
+++ w/flake.nix
@@ -55,7 +55,7 @@
SYSTEMS = [
flake-utils.lib.system.x86_64-linux
# TODO - Fix linux first and then get macos working.
- # flake-utils.lib.system.x86_64-darwin
+ flake-utils.lib.system.aarch64-darwin
];
kernelLib = import ./lib/kernels.nix {inherit self lib;};
➜ nix run
warning: Git tree '/Users/richard.banyi/Developer/nix-project-flakes' is dirty
error: attribute 'aarch64-darwin' missing
at /nix/store/nvss7vjwjdq6prxfwf24swzksn4f6cvm-source/jupyenv/flake.nix:32:18:
31| system: let
32| inherit (jupyenv.lib.${system}) mkJupyterlabNew;
| ^
33| jupyterlab = mkJupyterlabNew ({...}: {
(use '--show-trace' to show detailed location information)
Any fix yet?