2025-07-02 08:49:57 +00:00

67 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
meson,
ninja,
rustc,
cargo,
rustPlatform,
xdg-desktop-portal,
slurp,
cairo,
pango,
libxkbcommon,
glib,
pipewire,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xdg-desktop-portal-luminous";
version = "0.1.11";
src = fetchFromGitHub {
owner = "waycrate";
repo = "xdg-desktop-portal-luminous";
tag = "v${finalAttrs.version}";
hash = "sha256-WxkCZwV4zuDvl0n4Qnanh/eSFTQu+8J1zMtBSTI2hM8=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-HUImAQ2lDqrLYh+YDHjXNTHZiTthocB5U5L4gBmIGQQ=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
rustc
cargo
rustPlatform.cargoSetupHook
rustPlatform.bindgenHook
];
buildInputs = [
xdg-desktop-portal
slurp
cairo
pango
glib
pipewire
libxkbcommon
];
passthru.updateScript = nix-update-script { };
meta = {
description = "xdg-desktop-portal backend for wlroots based compositors, providing screenshot and screencast";
homepage = "https://github.com/waycrate/xdg-desktop-portal-luminous";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ Rishik-Y ];
};
})