cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.28k stars 322 forks source link

Is not possible to use android studio on macOS m1? #1515

Open mamcx opened 1 week ago

mamcx commented 1 week ago

Describe the bug

Following https://devenv.sh/integrations/android/

I get:


error:
       … while evaluating the attribute 'config'
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:9:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          335|         _module = checked (config._module);

       … while calling the 'seq' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error:
       error: The option `android.android-studio.__darwinAllowLocalNetworking' does not exist. Definition values:
       - In `/Users/mamcx/Proyectos/RustStore/devenv.nix': false
• Failed to get cachix caches due to evaluation error
error:
       … while evaluating the attribute 'config'
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:9:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          335|         _module = checked (config._module);

       … while calling the 'seq' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error:
       error: The option `android.android-studio.__darwinAllowLocalNetworking' does not exist. Definition values:
       - In `/Users/mamcx/Proyectos/RustStore/devenv.nix': false
Error:   × Failed to run command `/nix/store/m16x8dlzwhp7sx570h82h3x5332ldbfs-nix-2.24-devenv/bin/nix --show-trace --extra-experimental-features nix-command
  │ --extra-experimental-features flakes --option warn-dirty false --keep-going --max-jobs 4 --option eval-cache false print-dev-env --profile /Users/
  │ mamcx/Proyectos/RustStore/.devenv/gc/shell -vv --log-format internal-json`
  ╰─▶ Nix command failed: exit status: 1```

**Version**

devenv 1.3.0 (aarch64-darwin)
domenkozar commented 1 week ago

cc @k3yss

k3yss commented 1 week ago

@mamcx Can you try switching to nixpkgs-unstable instead of devenv-nixpkgs, instructions can be found here https://devenv.sh/common-patterns/#using-nixpkgs-unstable-instead-of-devenv-nixpkgs