chisui / zsh-nix-shell

zsh plugin that lets you use zsh in nix-shell shells.
BSD 3-Clause "New" or "Revised" License
373 stars 19 forks source link

How to calculate sha256 hash #39

Closed voidzero closed 1 year ago

voidzero commented 1 year ago

This question is fully beside the package itself, but how did you calculate the hash? Because the hash is longer (doesn't look as an sri) and it works even though I specified v0.7.0 :) So my curiosity is piqued.

chisui commented 1 year ago

I updated the version and hash in the readme.


I calculate the hash using nix-prefetch-url like this:

nix-prefetch-url --unpack https://github.com/chisui/zsh-nix-shell/archive/refs/tags/v0.7.0.tar.gz