forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
39 lines (35 loc) · 881 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
36
37
38
39
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
inputsFrom = [
(pkgs.ladybird.override (prev: {
# Apply fix expanding skia's public api
# See #4d7b717
skia = prev.skia.overrideAttrs (prev: {
gnFlags = prev.gnFlags ++ [
"extra_cflags+=[\"-DSKCMS_API=__attribute__((visibility(\\\"default\\\")))\"]"
];
});
}))
];
packages =
with pkgs;
with pkgs.qt6Packages;
with pkgs.nodePackages;
[
qtbase.dev
qttools
qtwayland.dev
ccache
clang-tools
pre-commit
prettier
];
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"
'';
}