summaryrefslogtreecommitdiff
path: root/Ladybird/ladybird.nix
blob: 27135e8721437d9caf203daa769301c3301fe473 (plain)
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
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell.override
{
  stdenv = pkgs.gcc12Stdenv;
}
{
  name = "ladybird";

  nativeBuildInputs = with pkgs; [
    ccache
    cmake
    libxcrypt
    ninja
    pkgconfig
    qt6.qtbase
    qt6.qtbase.dev
    qt6.qtsvg
    qt6.qttools
    qt6.qtwayland
    qt6.qtwayland.dev
  ];

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