mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
65 lines
1.6 KiB
Nix
65 lines
1.6 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 {
|
|
formatter = pkgs.nixfmt;
|
|
|
|
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";
|
|
};
|
|
});
|
|
}
|