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-06-05 15:53:02 +00:00
|
|
|
version = "1.3.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-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-D+dG0/MSC6LzGZBMNofU8WKVYvn52kNWunXExQPoOu8=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-WEEAFr5lemyOfeIKC9Pvr9sYMz8rLO6k1BFgbxXJ0Pk=";
|
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; {
|
|
|
|
description = "A Wayland compositor written in Rust";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|