mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
af3d46dc06
See #4d7b717
32 lines
775 B
Nix
32 lines
775 B
Nix
{
|
|
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.qt6Packages; [
|
|
qtbase.dev
|
|
qttools
|
|
qtwayland.dev
|
|
|
|
pkgs.ccache
|
|
];
|
|
|
|
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"
|
|
'';
|
|
}
|