Document fetchFromGithub
This commit is contained in:
parent
a0e66f6205
commit
542e6aa15f
2 changed files with 20 additions and 1 deletions
18
README.md
18
README.md
|
@ -16,3 +16,21 @@ doas nixos-rebuild switch --flake ".#mrmeeseeks"
|
|||
nix flake update
|
||||
doas nixos-rebuild switch --flake ".#mrmeeseeks"
|
||||
```
|
||||
|
||||
## Update manual packages from github
|
||||
|
||||
Somes of module use `fetchFromGithub` who need *SHA-256* hash to meet
|
||||
reproductibility. Theses hashed can be obtain with `nix-prefetch-github`:
|
||||
|
||||
```shell
|
||||
$ nix-shell -p nix-prefetch-github
|
||||
$ nix-prefetch-ghithub --rev v1.22.0 sindresorhus pure
|
||||
{
|
||||
"owner": "sindresorhus",
|
||||
"repo": "pure",
|
||||
"rev": "87e6f5dd4c793f6d980532205aaefe196780606f",
|
||||
"sha256": "TR4CyBZ+KoZRs9XDmWE5lJuUXXU1J8E2Z63nt+FS+5w="
|
||||
}
|
||||
```
|
||||
|
||||
In this example whe have obtained the hash for the specific 1.22.0 version.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue