pl-semiotics / nix-remarkable

Nix expressions for tools for the reMarkable tablet
GNU General Public License v2.0
61 stars 10 forks source link

reMarkable toolchain SHA256 #3

Open saleemrashid opened 3 years ago

saleemrashid commented 3 years ago

I downloaded the reMarkable toolchain (from https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-1.8-23.9.2019.sh) and the SHA256 was 6299955721bcd9bef92a87ad3cfe4d31df8e2da95b0c4b2cdded4431aa6748b0.

I wanted to verify this against another source and I came across your repository. But you have a different SHA256, cbd5ffa0e2ee4b244d5780289d3950f6228d8e3372f90c0dd728b45201ca61e6.

I've never used Nix before, so I wasn't sure if this sha256 field is the hash of the file. I spun up a Nix VM and tried the following:

$ nix-prefetch-url --type sha256 https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-1.8-23.9.2019.sh
[576.7 MiB DL]
path is '/nix/store/i4g3linhfvga7x70s13y8rn10kmrwm00-oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-1.8-23.9.2019.sh'
1c28cym32i7dvln4n32vm4nqxpri9pz3rbc75bwvxndw45brb6b2
$ nix-hash --type sha256 --to-base16 1c28cym32i7dvln4n32vm4nqxpri9pz3rbc75bwvxndw45brb6b2
6299955721bcd9bef92a87ad3cfe4d31df8e2da95b0c4b2cdded4431aa6748b0

So this gave me the same SHA256 of the downloaded file, and is different from the sha256 in your repository. Am I misunderstanding how this works, or has the reMarkable toolchain install file been changed?

roosemberth commented 3 years ago

Be advised that there are many versions of the toolchain.

saleemrashid commented 3 years ago

@roosemberth Thanks. This is the toolchain linked from their front page (not any of the ones in deploy/sdk) and is the exact same URL as the one in this repository.

https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-1.8-23.9.2019.sh

The end of that filename looks like a version number, so I wouldn't expect them to update the file without changing the filename.