Skip to content

Commit 1adebd6

Browse files
prophetofxenufricklerhandwerk
authored andcommitted
Update packaging-existing-software.md
1 parent f77ae1a commit 1adebd6

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

source/tutorials/packaging-existing-software.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,10 @@ Now run the `nix-build` command with the new argument:
150150

151151
```console
152152
$ 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
168157
```
169158

170159
### Finding the file hash
@@ -184,7 +173,7 @@ stdenv.mkDerivation {
184173
185174
src = fetchzip {
186175
url = "https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz";
187-
sha256 = "0xw6cr5jgi1ir13q6apvrivwmmpr5j8vbymp0x6ll0kcv6366hnn";
176+
sha256 = "sha256-1kJjhtlsAkpNB7f6tZEs+dbKd8z7KoNHyDHEJ0tmhnc=";
188177
};
189178
}
190179
```

0 commit comments

Comments
 (0)