mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:27:36 +00:00
nix: Clean up files, use good practices
This commit is contained in:
parent
3a8bde9ef2
commit
52498f9c79
7 changed files with 55 additions and 94 deletions
|
@ -34,22 +34,20 @@ On openSUSE:
|
|||
sudo zypper install cmake libglvnd-devel ninja qt6-base-devel qt6-multimedia-devel qt6-tools-devel qt6-wayland-devel ccache
|
||||
```
|
||||
|
||||
On Nix/NixOS (using your host nixpkgs):
|
||||
```bash
|
||||
# From /path/to/serenity
|
||||
nix-shell Ladybird/ladybird.nix
|
||||
On NixOS or with Nix:
|
||||
```console
|
||||
nix develop .#ladybird
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
nix-shell --command bash Ladybird/ladybird.nix
|
||||
nix develop .#ladybird --command bash
|
||||
```
|
||||
|
||||
You can also use the nix flake in `Toolchain`:
|
||||
```bash
|
||||
# From /path/to/serenity
|
||||
nix develop ./Toolchain#ladybird
|
||||
On NixOS or with Nix using your host `nixpkgs` and the legacy `nix-shell` tool:
|
||||
```console
|
||||
nix-shell Ladybird
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
nix develop ./Toolchain#ladybird --command bash
|
||||
nix-shell --command bash Ladybird
|
||||
```
|
||||
|
||||
On macOS:
|
||||
|
|
|
@ -27,35 +27,19 @@ 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 (using your host nixpkgs):
|
||||
You can use the flake in the root directory to enter a devShell that has all the required packages and tools to build SerenityOS:
|
||||
|
||||
```console
|
||||
nix-shell Toolchain/serenity.nix
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
nix-shell --command bash Toolchain/serenity.nix
|
||||
nix develop
|
||||
```
|
||||
|
||||
or you can use the nix flake [`Toolchain/flake.nix`](../Toolchain/flake.nix) instead:
|
||||
Or you can use the legacy `nix-shell` tool to enter the devShell:
|
||||
|
||||
```console
|
||||
nix develop ./Toolchain#
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
nix develop ./Toolchain# --command bash
|
||||
nix-shell Toolchain
|
||||
```
|
||||
|
||||
You can also save this environment to a profile:
|
||||
|
||||
```
|
||||
nix develop Toolchain --profile Toolchain/nix-profiles/dev
|
||||
```
|
||||
|
||||
and resume later with:
|
||||
|
||||
```
|
||||
nix develop Toolchain/nix-profiles/dev
|
||||
```
|
||||
This will use the `Toolchain/default.nix` file and your host `nixpkgs`.
|
||||
|
||||
## Alpine Linux
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue