2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, libGL
|
2022-12-17 10:02:37 +00:00
|
|
|
, libinput
|
|
|
|
, libxkbcommon
|
|
|
|
, mesa
|
|
|
|
, pango
|
|
|
|
, udev
|
2024-05-15 15:35:15 +00:00
|
|
|
, shaderc
|
|
|
|
, libglvnd
|
|
|
|
, vulkan-loader
|
|
|
|
, autoPatchelfHook
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jay";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.5.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mahkoh";
|
|
|
|
repo = pname;
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-cuXFkG2YwS0w4xzr7jpjr0QmVA5UJfk5SpjIQKxN/LY=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-w3ARwQlehJq9uNSQmbUjiWik4a2W3Ax/6/BIsdDUfKM=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
libGL
|
2022-12-17 10:02:37 +00:00
|
|
|
libxkbcommon
|
|
|
|
mesa
|
|
|
|
pango
|
|
|
|
udev
|
|
|
|
libinput
|
2024-05-15 15:35:15 +00:00
|
|
|
shaderc
|
|
|
|
];
|
|
|
|
|
|
|
|
runtimeDependencies = [
|
|
|
|
libglvnd
|
|
|
|
vulkan-loader
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D etc/jay.portal $out/usr/share/xdg-desktop-portal/portals/jay.portal
|
|
|
|
install -D etc/jay-portals.conf $out/usr/share/xdg-desktop-portal/jay-portals.conf
|
|
|
|
'';
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Wayland compositor written in Rust";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/mahkoh/jay";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "jay";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|