You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
`xlibsWrapper` is being deprecated: NixOS/nixpkgs#194054, this pr removes the deprecated xlibsWrapper and makes a couple more improvements
## Solution
- rename NixOS to Nix since this is not specific to NixOS
- remove usage of `xlibsWrapper`
- add instructions for nix flakes with `nix develop`
- add example of a packaged bevy program in nixpkgs
- minor cosmetic/grammatical changes
And enter it by just running `nix-shell`. You should be able compile Bevy programs using `cargo run` within this nix-shell. You can do this in one line with `nix-shell --run "cargo run"`.
126
+
And enter it by just running `nix-shell`.
127
+
You should be able compile Bevy programs using `cargo run` within this nix-shell.
128
+
You can do this in one line with `nix-shell --run "cargo run"`.
129
+
130
+
This is also possible with [Nix flakes](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html).
131
+
Instead of creating `shell.nix`, you just need to add the derivation (`mkShell`)
132
+
to your `devShells` in `flake.nix`. Run `nix develop` to enter the shell and
133
+
`nix develop -c cargo run` to run the program. See
Note that this template does not add Rust to the environment because there are many ways to do it.
138
+
For example, to use stable Rust from nixpkgs, you can add `cargo` and `rustc` to `nativeBuildInputs`.
125
139
126
-
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` to `nativeBuildInputs`.
0 commit comments