mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Ladybird/Misc: Add ladybird.nix for nix-shell support
This commit is contained in:
parent
5a9b891268
commit
e74dff7697
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/Baitinq Commit: https://github.com/SerenityOS/serenity/commit/e74dff7697 Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
@ -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:
|
||||
|
||||
```
|
||||
|
23
Ladybird/ladybird.nix
Normal file
23
Ladybird/ladybird.nix
Normal file
@ -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"
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user