File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -150,21 +150,10 @@ Now run the `nix-build` command with the new argument:
150
150
151
151
``` console
152
152
$ nix-build -A hello
153
- error:
154
- ...
155
- … while evaluating attribute 'src' of derivation 'hello'
156
-
157
- at /home/nix-user/hello.nix:9:3:
158
-
159
- 8|
160
- 9| src = fetchzip {
161
- | ^
162
- 10| url = "https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz";
163
-
164
- error: hash mismatch in file downloaded from 'https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz':
165
- specified: sha256:0000000000000000000000000000000000000000000000000000
166
- got: sha256:0xw6cr5jgi1ir13q6apvrivwmmpr5j8vbymp0x6ll0kcv6366hnn
167
- error: 1 dependencies of derivation '/nix/store/8l961ay0q0ydfsgby0ngz6nmkchjqd50-hello-2.12.1.drv' failed to build
153
+ error: hash mismatch in fixed-output derivation '/nix/store/pd2kiyfa0c06giparlhd1k31bvllypbb-source.drv':
154
+ specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
155
+ got: sha256-1kJjhtlsAkpNB7f6tZEs+dbKd8z7KoNHyDHEJ0tmhnc=
156
+ error: 1 dependencies of derivation '/nix/store/b4mjwlv73nmiqgkdabsdjc4zq9gnma1l-hello-2.12.1.drv' failed to build
168
157
```
169
158
170
159
### Finding the file hash
@@ -184,7 +173,7 @@ stdenv.mkDerivation {
184
173
185
174
src = fetchzip {
186
175
url = "https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz";
187
- sha256 = "0xw6cr5jgi1ir13q6apvrivwmmpr5j8vbymp0x6ll0kcv6366hnn ";
176
+ sha256 = "sha256-1kJjhtlsAkpNB7f6tZEs+dbKd8z7KoNHyDHEJ0tmhnc= ";
188
177
};
189
178
}
190
179
```
You can’t perform that action at this time.
0 commit comments