Skip to content

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

Open
@kolaente

Description

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions