1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Update 09-automatic-runtime-dependencies.md

This commit is contained in:
Edmondo Porcu 2024-06-09 13:43:45 -04:00 committed by GitHub
parent 42532b09a3
commit 9b2fcc095e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ $ nix-store -q --references result
/nix/store/md4a3zv0ipqzsybhjb8ndjhhga1dj88x-hello
```
and we see that `glibc` is a runtime dependency. This is exactly what we wanted.
and we see that `glibc` is a runtime dependency but `gcc` is not there anymore. This is exactly what we wanted.
The package is self-contained. This means that we can copy its closure onto another machine and we will be able to run it. Remember, only a very few components under the `/nix/store` are required to [run nix](02-install-on-your-running-system.md). The `hello` binary will use the exact version of `glibc` library and interpreter referred to in the binary, rather than the system one: