mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-12 10:48:39 +03:00

1. Refactored Nix devshell/package to make it easier to keep LD_LIBRARY_PATH & buildInputs in sync (plus make it easier to re-use in other Nix environment). 2. Added a CI job to ensure that Blueprints are formatted correctly and that they will compile using `blueprint-compiler` 0.16.0. 3. Reformatted all Blueprints with `blueprint-compiler format`.
44 lines
703 B
Nix
44 lines
703 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
stdenv,
|
|
enableX11 ? true,
|
|
enableWayland ? true,
|
|
}:
|
|
[
|
|
pkgs.libGL
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
pkgs.bzip2
|
|
pkgs.expat
|
|
pkgs.fontconfig
|
|
pkgs.freetype
|
|
pkgs.harfbuzz
|
|
pkgs.libpng
|
|
pkgs.libxml2
|
|
pkgs.oniguruma
|
|
pkgs.simdutf
|
|
pkgs.zlib
|
|
|
|
pkgs.glslang
|
|
pkgs.spirv-cross
|
|
|
|
pkgs.libxkbcommon
|
|
|
|
pkgs.glib
|
|
pkgs.gobject-introspection
|
|
pkgs.gsettings-desktop-schemas
|
|
pkgs.gtk4
|
|
pkgs.libadwaita
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isLinux && enableX11) [
|
|
pkgs.xorg.libX11
|
|
pkgs.xorg.libXcursor
|
|
pkgs.xorg.libXi
|
|
pkgs.xorg.libXrandr
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isLinux && enableWayland) [
|
|
pkgs.gtk4-layer-shell
|
|
pkgs.wayland
|
|
]
|