2024-04-11 20:33:06 +02:00
|
|
|
{
|
2024-04-14 21:10:29 +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";
|
|
|
|
};
|
|
|
|
|
2024-04-14 21:10:29 +02:00
|
|
|
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;
|
2024-04-13 21:41:23 +02:00
|
|
|
|
2024-04-14 21:10:29 +02:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
# rust devel tools
|
|
|
|
combinedToolchain
|
|
|
|
rust-analyzer
|
|
|
|
cargo-outdated
|
2024-04-11 20:33:06 +02:00
|
|
|
|
2024-04-13 17:56:02 +02:00
|
|
|
# wlcs
|
|
|
|
(writeScriptBin "wlcs" ''
|
|
|
|
#!/bin/sh
|
|
|
|
${wlcs}/libexec/wlcs/wlcs "$@"
|
|
|
|
'')
|
|
|
|
|
2024-04-14 21:10:29 +02:00
|
|
|
wayland
|
2024-04-11 20:33:06 +02:00
|
|
|
|
2024-04-14 21:10:29 +02:00
|
|
|
# build time stuff
|
|
|
|
protobuf
|
|
|
|
lua54Packages.luarocks
|
2024-04-13 21:41:23 +02:00
|
|
|
|
2024-04-14 21:10:29 +02:00
|
|
|
# libs
|
|
|
|
seatd.dev
|
|
|
|
systemdLibs.dev
|
|
|
|
libxkbcommon
|
|
|
|
libinput
|
|
|
|
mesa
|
|
|
|
xwayland
|
2024-06-17 01:51:34 +02:00
|
|
|
libdisplay-info
|
2024-04-14 21:10:29 +02:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
});
|
2024-04-11 20:33:06 +02:00
|
|
|
}
|