2024-12-14 09:53:07 -05:00
|
|
|
{
|
|
|
|
pkgs ? import <nixpkgs> { },
|
|
|
|
}:
|
2022-09-22 07:22:28 -04:00
|
|
|
|
2024-11-19 21:11:10 -05:00
|
|
|
pkgs.mkShell {
|
2024-12-14 09:53:07 -05:00
|
|
|
inputsFrom = [
|
2024-12-14 10:04:27 -05:00
|
|
|
(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\\\")))\"]"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}))
|
2024-12-14 09:53:07 -05:00
|
|
|
];
|
|
|
|
|
2024-12-27 04:40:37 -05:00
|
|
|
packages =
|
|
|
|
with pkgs;
|
|
|
|
with pkgs.qt6Packages;
|
|
|
|
with pkgs.nodePackages;
|
|
|
|
[
|
|
|
|
qtbase.dev
|
|
|
|
qttools
|
|
|
|
qtwayland.dev
|
2024-11-19 21:11:10 -05:00
|
|
|
|
2024-12-27 04:40:37 -05:00
|
|
|
ccache
|
|
|
|
clang-tools
|
|
|
|
pre-commit
|
|
|
|
prettier
|
|
|
|
];
|
2022-09-22 07:22:28 -04:00
|
|
|
|
|
|
|
shellHook = ''
|
2023-02-18 10:14:19 -05:00
|
|
|
# NOTE: This is required to make it find the wayland platform plugin installed
|
|
|
|
# above, but should probably be fixed upstream.
|
2024-11-19 21:11:10 -05:00
|
|
|
export QT_PLUGIN_PATH="$QT_PLUGIN_PATH:${pkgs.qt6.qtwayland}/lib/qt-6/plugins"
|
2022-09-22 07:22:28 -04:00
|
|
|
export QT_QPA_PLATFORM="wayland;xcb"
|
|
|
|
'';
|
|
|
|
}
|