depot/third_party/nixpkgs/pkgs/applications/window-managers/jay/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

63 lines
1.2 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, libGL
, libinput
, libxkbcommon
, mesa
, pango
, udev
, shaderc
, libglvnd
, vulkan-loader
, autoPatchelfHook
}:
rustPlatform.buildRustPackage rec {
pname = "jay";
version = "1.3.0";
src = fetchFromGitHub {
owner = "mahkoh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-D+dG0/MSC6LzGZBMNofU8WKVYvn52kNWunXExQPoOu8=";
};
cargoHash = "sha256-WEEAFr5lemyOfeIKC9Pvr9sYMz8rLO6k1BFgbxXJ0Pk=";
SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
libGL
libxkbcommon
mesa
pango
udev
libinput
shaderc
];
runtimeDependencies = [
libglvnd
vulkan-loader
];
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
'';
meta = with lib; {
description = "Wayland compositor written in Rust";
homepage = "https://github.com/mahkoh/jay";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ dit7ya ];
mainProgram = "jay";
};
}