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

nix develop broken #1

Open
pkharvey opened this issue Mar 5, 2024 · 1 comment
Open

nix develop broken #1

pkharvey opened this issue Mar 5, 2024 · 1 comment

Comments

@pkharvey
Copy link

pkharvey commented Mar 5, 2024

It appears https://www.segger.com/downloads/jlink/JLink_Linux_V766_x86_64.tgz still exists for download, but its sha256 has changed.

Full output:

$ nix develop github:matthewcroughan/nrf-nix -L
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
python3> created 560 symlinks in user environment
zephyr-sdk-patched> unpacking sources
zephyr-sdk-patched> unpacking source archive /nix/store/7bgn10i8932ayjbrjyv32lq4qacr9974-source
JLink_Linux_V766_x86_64.tgz> error checking the existence of https://tarballs.nixos.org/sha256/90aa7e4f5eae6e60fd41978111b3ff124ba0269562d0d0ec3110d3cb4bb51fe2:
JLink_Linux_V766_x86_64.tgz> trying https://www.segger.com/downloads/jlink/JLink_Linux_V766_x86_64.tgz
JLink_Linux_V766_x86_64.tgz>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
JLink_Linux_V766_x86_64.tgz>                                  Dload  Upload   Total   Spent    Left  Speed
fetched-west-workspace-v2.1.0> === Initializing in /nix/store/y9xfhjwdp1yalg90z5chgc4s18a8nrg3-fetched-west-workspace-v2.1.0
fetched-west-workspace-v2.1.0> --- Cloning manifest repository from https://github.com/nrfconnect/sdk-nrf, rev. v2.1.0
fetched-west-workspace-v2.1.0> Cloning into '/nix/store/y9xfhjwdp1yalg90z5chgc4s18a8nrg3-fetched-west-workspace-v2.1.0/.west/manifest-tmp'...
nrf-command-line-tools> trying https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-16-0/nrf-command-line-tools-10.16.0_linux-amd64.tar.gz
nrf-command-line-tools>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nrf-command-line-tools>                                  Dload  Upload   Total   Spent    Left  Speed
nrfconnect> trying https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-connect-for-desktop/4-0-1/nrfconnect-4.0.1-x86_64.appimage
nrfconnect>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nrfconnect>                                  Dload  Upload   Total   Spent    Left  Speed
nordic-semiconductor-nrf-connect.zip> trying https://nordic-semiconductor.gallery.vsassets.io/_apis/public/gallery/publisher/nordic-semiconductor/extension/nrf-connect/2022.7.111/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
nordic-semiconductor-nrf-connect.zip>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nordic-semiconductor-nrf-connect.zip>                                  Dload  Upload   Total   Spent    Left  Speed
ms-vscode-cpptools.zip> trying https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/cpptools/1.11.0/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage?targetPlatform=linux-x64
ms-vscode-cpptools.zip>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
ms-vscode-cpptools.zip>                                  Dload  Upload   Total   Spent    Left  Speed
JLink_Linux_V766_x86_64.tgz> 100    33    0     0  100    33      0     67 --:--:-- --:--:-- --:--:--    67
fetched-west-workspace-v2.1.0> remote: Enumerating objects: 214864, done.
fetched-west-workspace-v2.1.0> remote: Counting objects: 100% (89/89), done.
fetched-west-workspace-v2.1.0> remote: Compressing objects: 100% (52/52), done.
JLink_Linux_V766_x86_64.tgz> 100 1523k    0 1523k    0     0   585k      0 --:--:--  0:00:02 --:--:--  969k
error: hash mismatch in fixed-output derivation '/nix/store/p6fk6aj6mbp38gi85y0bxdark4qkc6bs-JLink_Linux_V766_x86_64.tgz.drv':
         specified: sha256-kKp+T16ubmD9QZeBEbP/EkugJpVi0NDsMRDTy0u1H+I=
            got:    sha256-zaRPf7y+PZgRl2oFFbvFaJGSNtuZogzkjeoo90ycscU=
error: 1 dependencies of derivation '/nix/store/21bjyx8klw1xyzh98g13ygf701gqn3kb-segger-jlink-766.drv' failed to build
error: 1 dependencies of derivation '/nix/store/358sj94wsdbm8sflqf05z1mh4n434c1r-code-usr-target.drv' failed to build
error: 1 dependencies of derivation '/nix/store/41m6l3368mcbablbbr1am33q3ln2v5lz-nrf-command-line-tools-10.16.0.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-zephyr-sdk-patched.drv-1/source/nios2-zephyr-elf/nios2-zephyr-elf/lib': Directory not empty
error: 1 dependencies of derivation '/nix/store/mjir24i5p20m8qdfkwk7l7v5k3lkn6vi-nrfconnect-4.0.1-usr-target.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gw7cvbv2rpl01p2ry60zgg9mqzx7wihy-nix-shell-env.drv' failed to build

Unable to find where to specify hash for JLink in files.

Tried updating flake.lock and permitting segger-jlink-qt4-794a as insecure, but fails in similar way.

@MatthewCroughan
Copy link
Owner

Indiscernible from a supply chain attack. Good to keep track of these things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants