mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Docs: Update Nixos build instructions
This commit is contained in:
parent
43746ca52d
commit
f4cc9c6426
Notes:
github-actions[bot]
2024-12-01 18:28:55 +00:00
Author: https://github.com/ttrssreal Commit: https://github.com/LadybirdBrowser/ladybird/commit/f4cc9c6426e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2450 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 22 additions and 9 deletions
|
@ -102,24 +102,37 @@ sudo xbps-install -S git bash gcc python3 curl cmake zip unzip linux-headers mak
|
|||
### NixOS or with Nix:
|
||||
|
||||
> [!NOTE]
|
||||
> These steps are out of date, as vcpkg does not work with Nix.
|
||||
> Please refer to the nixpkgs package for the most up-to-date build instructions.
|
||||
>
|
||||
> Ladybird's build system uses vcpkg to vendor third-party dependencies, which proves undesirable to use with Nix for [several reasons](https://github.com/LadybirdBrowser/ladybird/issues/371).
|
||||
> As a result, using `ladybird.sh` to compile and run Ladybird will fail. Therefore, it is necessary to use system packages provided by the dev-shell.
|
||||
|
||||
To build the project, first enter the shell:
|
||||
|
||||
```console
|
||||
nix develop
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
# With a custom entrypoint, for example, your favorite shell
|
||||
nix develop --command bash
|
||||
|
||||
# Using nix-shell
|
||||
nix-shell UI
|
||||
|
||||
# Using nix-shell and a custom shell
|
||||
nix-shell UI --command bash
|
||||
```
|
||||
|
||||
On NixOS or with Nix using your host `nixpkgs` and the legacy `nix-shell` tool:
|
||||
```console
|
||||
nix-shell Ladybird
|
||||
Then invoke `cmake` directly. For example:
|
||||
|
||||
# With a custom entrypoint, for example your favorite shell
|
||||
nix-shell --command bash Ladybird
|
||||
```
|
||||
cmake -GNinja -BBuild/release
|
||||
```
|
||||
|
||||
Finally, run `ninja` (or the generator you're using) to start the build:
|
||||
|
||||
```
|
||||
ninja -CBuild/release
|
||||
```
|
||||
|
||||
For more information, see [Custom CMake build directory](#custom-cmake-build-directory) and [Running manually](#running-manually).
|
||||
|
||||
### macOS:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue