mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-11-16 07:48:11 +01:00
eb126d7847
i have no clue what i'm doing lol
75 lines
1.7 KiB
Nix
75 lines
1.7 KiB
Nix
{
|
|
description = "A WIP Smithay-based Wayland compositor, inspired by AwesomeWM and configured in Lua or Rust";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
flake-utils,
|
|
fenix,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachSystem
|
|
[
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
]
|
|
(
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
fenixPkgs = fenix.packages.${system};
|
|
toolchain = fenixPkgs.stable;
|
|
combinedToolchain = toolchain.completeToolchain;
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
nativeBuildInputs = [
|
|
pkgs.pkg-config
|
|
];
|
|
buildInputs = with pkgs; [
|
|
# rust devel tools
|
|
combinedToolchain
|
|
rust-analyzer
|
|
cargo-outdated
|
|
|
|
wayland
|
|
|
|
# build time stuff
|
|
protobuf
|
|
lua54Packages.luarocks
|
|
|
|
# libs
|
|
seatd.dev
|
|
systemdLibs.dev
|
|
libxkbcommon
|
|
libinput
|
|
mesa
|
|
xwayland
|
|
|
|
# winit on x11
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXi
|
|
xorg.libX11
|
|
];
|
|
runtimeDependencies = with pkgs; [
|
|
wayland
|
|
mesa
|
|
libglvnd # libEGL
|
|
];
|
|
LD_LIBRARY_PATH = "${pkgs.wayland}/lib:${pkgs.libGL}/lib:${pkgs.libxkbcommon}/lib";
|
|
};
|
|
}
|
|
);
|
|
}
|