forked from NotAShelf/beer
aarch64-darwin compatible nix
This commit is contained in:
parent
bb94543f61
commit
bff031b35b
3 changed files with 28 additions and 18 deletions
|
|
@ -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]}
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue