mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-25 09:59:21 +01:00
nix: add some flake dependencies
ayo hope i didn't break anything
This commit is contained in:
parent
52d05b66b7
commit
10891bb329
2 changed files with 32 additions and 13 deletions
|
@ -66,6 +66,9 @@ You will need:
|
||||||
- NixOS: There is flake [`flake.nix`](flake.nix) with a devShell. It also
|
- 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
|
includes the other tools needed for the build and sets up the
|
||||||
`LD_LIBRARY_PATH` so the dynamically loaded libraries are found.
|
`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
|
- [protoc](https://grpc.io/docs/protoc-installation/), the Protocol Buffer Compiler, for configuration
|
||||||
- Arch:
|
- Arch:
|
||||||
```sh
|
```sh
|
||||||
|
|
42
flake.nix
42
flake.nix
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = " A WIP Smithay-based Wayland compositor, inspired by AwesomeWM and configured in Lua or Rust";
|
description = "A WIP Smithay-based Wayland compositor, inspired by AwesomeWM and configured in Lua or Rust";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||||
|
@ -34,25 +34,41 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
buildInputs = [
|
nativeBuildInputs = [
|
||||||
|
pkgs.pkg-config
|
||||||
|
];
|
||||||
|
buildInputs = with pkgs; [
|
||||||
# rust devel tools
|
# rust devel tools
|
||||||
combinedToolchain
|
combinedToolchain
|
||||||
pkgs.rust-analyzer
|
rust-analyzer
|
||||||
pkgs.cargo-outdated
|
cargo-outdated
|
||||||
|
|
||||||
|
wayland
|
||||||
|
|
||||||
# build time stuff
|
# build time stuff
|
||||||
pkgs.pkg-config
|
protobuf
|
||||||
pkgs.protobuf
|
lua54Packages.luarocks
|
||||||
pkgs.luarocks
|
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
pkgs.seatd.dev
|
seatd.dev
|
||||||
pkgs.systemdLibs.dev
|
systemdLibs.dev
|
||||||
pkgs.libxkbcommon
|
libxkbcommon
|
||||||
pkgs.libinput
|
libinput
|
||||||
pkgs.mesa
|
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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue