Skip to content

Commit 53d697b

Browse files
committed
updted hash and document usage
1 parent 669f26b commit 53d697b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/book/src/cli/configuration.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,12 @@ nickel = {
198198
```
199199

200200
The simplest way to obtain the hash is to use `nix-prefetch-git` (and look for
201-
the `hash` field in its output). The second simplest way is to compile, which
202-
will show something like:
201+
the `hash` field in its output):
202+
```sh
203+
nix run nixpkgs#nix-prefetch-git -- https://github.com/bytecodealliance/tree-sitter-wit 230984dfaf803a0ff8f77da5034361a62c326577
204+
```
203205

206+
The second simplest way is to compile, which will show something like:
204207
```
205208
evaluation warning: Language `nickel`: no nixHash provided - using dummy value
206209
error: hash mismatch in fixed-output derivation '/nix/store/jgny7ll7plh7rfdnvdpgcb82kd51aiyx-tree-sitter-nickel-43433d8.drv':

topiary-config/languages.ncl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
source.git = {
135135
git = "https://github.com/bytecodealliance/tree-sitter-wit",
136136
rev = "230984dfaf803a0ff8f77da5034361a62c326577",
137-
nixHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
137+
nixHash = "sha256-g5ufAL8w8xrp7ExDvJCyToHShmKV4hXg2J2Qp82L/0s=",
138138
},
139139
},
140140
extensions = ["wit"],

0 commit comments

Comments
 (0)