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

Trying to run devenv with android fails, hash mismatch #1706

Open
kolaente opened this issue Feb 8, 2025 · 1 comment
Open

Trying to run devenv with android fails, hash mismatch #1706

kolaente opened this issue Feb 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@kolaente
Copy link

kolaente commented Feb 8, 2025

Describe the bug

Running the devenv config mentioned below fails with this error:

error: hash mismatch in fixed-output derivation '/nix/store/zsfxdbsw1grq8hyvkhhw75yfbndxygac-platform-35_r02.zip.drv':
         specified: sha1-KgsGocibUqPXDOXUBVSwlMHB0Kw=
            got:    sha1-C7VgqQp6LL0N2DSCJNUYtjj+eUk=
error: 1 dependencies of derivation '/nix/store/q6rl93q6nln9sbrlwhvl1nr728z7w6fz-android-sdk-platforms-35.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3z91k7ab4yxdn1hjnwf5x1q34v5zyk9d-androidsdk.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pd0j637zddjpb2qpyb1w5ip4vcxfnahj-android-sdk-emulator.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4h568bznyqzkl42ibfmfb2xx08v1yhby-devenv-profile.drv' failed to build
error:
       error: 2 dependencies of derivation '/nix/store/nw7n2cxl6mlgzkwqy2kaw3j358245v3r-devenv-shell-env.drv' failed to build
Error:   × Failed to run command `/nix/store/d4ybvb60qczbgvk1xlnyqjzqy1xxkqqv-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 6 --option eval-cache false --option extra-substituters https://
  │ devenv.cachix.org --option extra-trusted-public-keys nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= print-dev-env --profile /home/konrad/www/nfc-collector/.devenv/gc/shell -vv --log-format internal-json`
  ╰─▶ Nix command failed: exit status: 1

direnv: failed to build the devenv environment. devenv.nix may contain errors. see above.

It's unclear to me why this fails during a download of sdk platform 35, when I didn't specify to download this, nor is it the default.

The same config worked when pinned to 2024-09-ish but doesn't when pinned to the latest.

To reproduce

https://gist.github.com/kolaente/890e7757ffc487f1255fc477798f7a33

Version

Paste the output of $ devenv version here or tell us if you're using flakes.

devenv 1.3.1 (x86_64-linux)

NixOS, no flakes.

@kolaente kolaente added the bug Something isn't working label Feb 8, 2025
@kolaente
Copy link
Author

kolaente commented Feb 8, 2025

This seems to work when using github:cachix/devenv-nixpkgs/rolling as source for nixpkgs in devenv.yaml.

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

No branches or pull requests

1 participant