ladybird/shell.nix
Vinicius Deolindo fc956080e2 Flake/devshell: Add more useful packages
The list now includes:
    - clang-tools: For clangd and clang-format
    - pre-commit: For the pre-commit hooks
    - prettier: For web-related formatting
2024-12-27 17:13:26 -07:00

39 lines
881 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;
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"
'';
}