nix: add some flake dependencies

ayo hope i didn't break anything
This commit is contained in:
Ottatop 2024-04-13 14:41:23 -05:00
parent 52d05b66b7
commit 10891bb329
2 changed files with 32 additions and 13 deletions

View file

@ -66,6 +66,9 @@ You will need:
- NixOS: There is flake [`flake.nix`](flake.nix) with a devShell. It also
includes the other tools needed for the build and sets up the
`LD_LIBRARY_PATH` so the dynamically loaded libraries are found.
> [!NOTE]
> The Lua API currently does not work due to some shenanigans with Luarocks and openssl directories.
> Fix soon, hopefully. In the meantime you can use the Rust API.
- [protoc](https://grpc.io/docs/protoc-installation/), the Protocol Buffer Compiler, for configuration
- Arch:
```sh

View file

@ -34,25 +34,41 @@
in
{
devShell = pkgs.mkShell {
buildInputs = [
nativeBuildInputs = [
pkgs.pkg-config
];
buildInputs = with pkgs; [
# rust devel tools
combinedToolchain
pkgs.rust-analyzer
pkgs.cargo-outdated
rust-analyzer
cargo-outdated
wayland
# build time stuff
pkgs.pkg-config
pkgs.protobuf
pkgs.luarocks
protobuf
lua54Packages.luarocks
# libs
pkgs.seatd.dev
pkgs.systemdLibs.dev
pkgs.libxkbcommon
pkgs.libinput
pkgs.mesa
seatd.dev
systemdLibs.dev
libxkbcommon
libinput
mesa
# winit on x11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
];
LD_LIBRARY_PATH = "${pkgs.wayland}/lib:${pkgs.libGL}/lib";
runtimeDependencies = with pkgs; [
wayland
mesa
libglvnd # libEGL
xwayland
];
LD_LIBRARY_PATH = "${pkgs.wayland}/lib:${pkgs.libGL}/lib:${pkgs.libxkbcommon}/lib";
};
}
);