Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Missing aarch64-darwin attributes (support for MacOS M1) #388

Open
rober-m opened this issue Dec 5, 2022 · 6 comments
Open

[Bug]: Missing aarch64-darwin attributes (support for MacOS M1) #388

rober-m opened this issue Dec 5, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@rober-m
Copy link

rober-m commented Dec 5, 2022

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

@rober-m rober-m added the bug Something isn't working label Dec 5, 2022
@chapmanbe
Copy link

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'

@cherryramatisdev
Copy link

Any workaround on this ?

@zimt28
Copy link

zimt28 commented Apr 18, 2023

Looks like not even x86_64-darwin is currently supported:

jupyenv/flake.nix

Lines 55 to 59 in 3ad2c95

SYSTEMS = [
flake-utils.lib.system.x86_64-linux
# TODO - Fix linux first and then get macos working.
# flake-utils.lib.system.x86_64-darwin
];

It's a little bit strange that Getting Started contains instructions for installing Nix on macOS though.

@kamalmarhubi
Copy link

kamalmarhubi commented Apr 24, 2023

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;};

@richban
Copy link

richban commented Aug 26, 2023

➜ 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)

@rootid
Copy link

rootid commented Sep 17, 2023

Any fix yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants