Updated nixos link in linux_dependencies.md. (#17146)

Fixes dead link to nixos file and includes a slight wording change.

Adopts #16601 and closes #16811.

---------

Co-authored-by: Thomas M. DuBuisson <thomas.dubuisson@gmail.com>
This commit is contained in:
AlephCubed 2025-01-04 18:35:36 -08:00 committed by GitHub
parent fe58993577
commit f2931dc433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,15 +144,15 @@ to link graphics drivers into the context of software installed by nix:
This is also possible with [Nix flakes](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html). This is also possible with [Nix flakes](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html).
Instead of creating `shell.nix`, you just need to add the derivation (`mkShell`) Instead of creating `shell.nix`, you just need to add the derivation (`mkShell`)
to your `devShells` in `flake.nix`. Run `nix develop` to enter the shell and to your `devShells` in `flake.nix`. Run `nix develop` to enter the shell or
`nix develop -c cargo run` to run the program. See `nix develop -c cargo run` to just run the program. See
[Nix's documentation](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-develop.html) [Nix's documentation](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-develop.html)
for more information about `devShells`. for more information about `devShells`.
Note that this template does not add Rust to the environment because there are many ways to do it. Note that this template does not add Rust to the environment because there are many ways to do it.
For example, to use stable Rust from nixpkgs, you can add `cargo` and `rustc` to `nativeBuildInputs`. For example, to use stable Rust from nixpkgs, you can add `cargo` and `rustc` to `nativeBuildInputs`.
[Here](https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/jumpy/default.nix) [Here](https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/ju/jumpy/package.nix)
is an example of packaging a Bevy program in nix. is an example of packaging a Bevy program in nix.
## [OpenSUSE](https://www.opensuse.org/) ## [OpenSUSE](https://www.opensuse.org/)