2024-04-11 20:33:06 +02:00
|
|
|
{
|
2024-04-13 21:41:23 +02:00
|
|
|
description = "A WIP Smithay-based Wayland compositor, inspired by AwesomeWM and configured in Lua or Rust";
|
2024-04-11 20:33:06 +02:00
|
|
|
|
|
|
|
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 {
|
2024-04-13 21:41:23 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
2024-04-11 20:33:06 +02:00
|
|
|
# rust devel tools
|
|
|
|
combinedToolchain
|
2024-04-13 21:41:23 +02:00
|
|
|
rust-analyzer
|
|
|
|
cargo-outdated
|
|
|
|
|
|
|
|
wayland
|
2024-04-11 20:33:06 +02:00
|
|
|
|
|
|
|
# build time stuff
|
2024-04-13 21:41:23 +02:00
|
|
|
protobuf
|
|
|
|
lua54Packages.luarocks
|
2024-04-11 20:33:06 +02:00
|
|
|
|
|
|
|
# libs
|
2024-04-13 21:41:23 +02:00
|
|
|
seatd.dev
|
|
|
|
systemdLibs.dev
|
|
|
|
libxkbcommon
|
|
|
|
libinput
|
|
|
|
mesa
|
2024-04-13 22:00:53 +02:00
|
|
|
xwayland
|
2024-04-13 21:41:23 +02:00
|
|
|
|
|
|
|
# winit on x11
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libX11
|
|
|
|
];
|
|
|
|
runtimeDependencies = with pkgs; [
|
|
|
|
wayland
|
|
|
|
mesa
|
|
|
|
libglvnd # libEGL
|
2024-04-11 20:33:06 +02:00
|
|
|
];
|
2024-04-13 21:41:23 +02:00
|
|
|
LD_LIBRARY_PATH = "${pkgs.wayland}/lib:${pkgs.libGL}/lib:${pkgs.libxkbcommon}/lib";
|
2024-04-11 20:33:06 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|