1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 14:07:45 +00:00

Documentation: Improve nix related commands

This patch fixes `nix develop` commands not using proper paths, uses
the serenity root directory as an assumption for all commands and
adds variants of nix commands to use a custom entry point, for example
a shell.
This commit is contained in:
networkException 2023-12-04 02:13:55 +01:00 committed by Sam Atkins
parent 20162874e0
commit b95e7772e7
2 changed files with 22 additions and 7 deletions

View file

@ -27,16 +27,22 @@ apt-get install curl cmake libmpc-devel gmp-devel e2fsprogs libmpfr-devel ninja-
## NixOS
You can use the `nix-shell` script [`Toolchain/serenity.nix`](../Toolchain/serenity.nix) to set up the environment:
You can use the `nix-shell` script [`Toolchain/serenity.nix`](../Toolchain/serenity.nix) to set up the environment (using your host nixpkgs):
```console
nix-shell Toolchain/serenity.nix
# With a custom entrypoint, for example your favorite shell
nix-shell --command bash Toolchain/serenity.nix
```
or you can use the nix flake [`Toolchain/flake.nix`](../Toolchain/flake.nix) instead:
```console
nix develop Toolchain
nix develop ./Toolchain#
# With a custom entrypoint, for example your favorite shell
nix develop ./Toolchain# --command bash
```
You can also save this environment to a profile: