diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-22 13:22:28 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-25 07:58:58 -0700 |
commit | e74dff7697f240044b43f2a5ed838a4367bd80e3 (patch) | |
tree | 414463e755bbe7ba191ad3dfbc690f6196e4d85e | |
parent | 5a9b891268eb90976cb5ced1544e789b095055ff (diff) | |
download | serenity-e74dff7697f240044b43f2a5ed838a4367bd80e3.zip |
Ladybird/Misc: Add ladybird.nix for nix-shell support
-rw-r--r-- | Ladybird/Documentation/BuildInstructions.md | 5 | ||||
-rw-r--r-- | Ladybird/ladybird.nix | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/Ladybird/Documentation/BuildInstructions.md b/Ladybird/Documentation/BuildInstructions.md index dbd28b3833..b7a2bc92a6 100644 --- a/Ladybird/Documentation/BuildInstructions.md +++ b/Ladybird/Documentation/BuildInstructions.md @@ -19,6 +19,11 @@ On Fedora or derivatives: sudo dnf install cmake libglvnd-devel ninja-build qt6-qtbase-devel qt6-qttools-devel qt6-qtwayland-devel ``` +On Nix/NixOS +``` +nix-shell ladybird.nix +``` + On macOS: ``` diff --git a/Ladybird/ladybird.nix b/Ladybird/ladybird.nix new file mode 100644 index 0000000000..c5a038b529 --- /dev/null +++ b/Ladybird/ladybird.nix @@ -0,0 +1,23 @@ +{ pkgs ? import <nixpkgs> { } }: +pkgs.mkShell.override +{ + stdenv = pkgs.gcc12Stdenv; +} +{ + name = "ladybird"; + + nativeBuildInputs = with pkgs; [ + pkgconfig + cmake + ninja + qt6.qtbase + qt6.qtbase.dev + qt6.qttools + qt6.qtwayland + qt6.qtwayland.dev + ]; + + shellHook = '' + export QT_QPA_PLATFORM="wayland;xcb" + ''; +} |