nixpkgs/pkgs/by-name/ja/jay/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.2 KiB
Nix
Raw Normal View History

2022-10-24 13:35:16 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, libGL
2022-10-24 13:35:16 +00:00
, libinput
, libxkbcommon
, mesa
, pango
, udev
, shaderc
, libglvnd
, vulkan-loader
, autoPatchelfHook
2022-10-24 13:35:16 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "jay";
2024-09-02 13:08:35 +00:00
version = "1.5.0";
2022-10-24 13:35:16 +00:00
src = fetchFromGitHub {
owner = "mahkoh";
repo = pname;
rev = "v${version}";
2024-09-02 13:08:35 +00:00
sha256 = "sha256-cuXFkG2YwS0w4xzr7jpjr0QmVA5UJfk5SpjIQKxN/LY=";
2022-10-24 13:35:16 +00:00
};
2024-09-02 13:08:35 +00:00
cargoHash = "sha256-w3ARwQlehJq9uNSQmbUjiWik4a2W3Ax/6/BIsdDUfKM=";
SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";
nativeBuildInputs = [
autoPatchelfHook
];
2022-10-24 13:35:16 +00:00
buildInputs = [
libGL
2022-10-24 13:35:16 +00:00
libxkbcommon
mesa
pango
udev
libinput
shaderc
];
runtimeDependencies = [
libglvnd
vulkan-loader
2022-10-24 13:35:16 +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-10-24 13:35:16 +00:00
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "jay";
2022-10-24 13:35:16 +00:00
};
}