aarch64-darwin compatible nix

This commit is contained in:
temidaradev 2026-06-26 18:49:38 +03:00
commit bff031b35b
Signed by: temidaradev
GPG key ID: CF0CCF7E9AD5BD9D
3 changed files with 28 additions and 18 deletions

View file

@ -1,5 +1,6 @@
{
lib,
stdenv,
rustPlatform,
pkg-config,
makeBinaryWrapper,
@ -45,13 +46,16 @@ in
installShellFiles # installManPage
];
buildInputs = [
wayland
libxkbcommon
freetype
fontconfig
harfbuzz
];
buildInputs =
[
freetype
fontconfig
harfbuzz
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland
libxkbcommon
];
# Install the terminfo entry, and make the Wayland/xkb libraries (loaded via
# dlopen, so not captured by rpath) discoverable at runtime.
@ -63,7 +67,8 @@ in
scdoc < doc/beer.1.scd > beer.1
scdoc < doc/beer.toml.5.scd > beer.toml.5
installManPage beer.1 beer.toml.5
''
+ lib.optionalString stdenv.hostPlatform.isLinux ''
wrapProgram "$out/bin/beer" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [wayland libxkbcommon]}
'';