forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
35 lines (30 loc) · 797 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
inputsFrom = [
pkgs.ladybird
];
packages =
with pkgs;
with pkgs.qt6Packages;
with pkgs.nodePackages;
[
qtbase.dev
qttools
qtwayland.dev
ccache
clang-tools
pre-commit
prettier
];
# Fix for: https://github.com/LadybirdBrowser/ladybird/issues/371#issuecomment-2616415434
# https://github.com/NixOS/nixpkgs/commit/049a854b4be087eaa3a09012b9c452fbc838dd41
NIX_LDFLAGS = "-lGL";
shellHook = ''
# NOTE: This is required to make it find the wayland platform plugin installed
# above, but should probably be fixed upstream.
export QT_PLUGIN_PATH="$QT_PLUGIN_PATH:${pkgs.qt6.qtwayland}/lib/qt-6/plugins"
export QT_QPA_PLATFORM="wayland;xcb"
'';
}