From eebe42d6ba0b098315ff255b8be79d1baafc77a7 Mon Sep 17 00:00:00 2001 From: Rishik Yalamanchili <73787402+Rishik-Y@users.noreply.github.com> Date: Sat, 15 Mar 2025 02:06:18 +0530 Subject: [PATCH] xdg-desktop-portal-luminous: init at 0.1.8 --- .../xdg-desktop-portal-luminous/package.nix | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/by-name/xd/xdg-desktop-portal-luminous/package.nix diff --git a/pkgs/by-name/xd/xdg-desktop-portal-luminous/package.nix b/pkgs/by-name/xd/xdg-desktop-portal-luminous/package.nix new file mode 100644 index 000000000000..94555e6178e4 --- /dev/null +++ b/pkgs/by-name/xd/xdg-desktop-portal-luminous/package.nix @@ -0,0 +1,63 @@ +{ + lib, + stdenv, + fetchFromGitHub, + pkg-config, + meson, + ninja, + rustc, + cargo, + rustPlatform, + xdg-desktop-portal, + slurp, + cairo, + pango, + libxkbcommon, + glib, + pipewire, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "xdg-desktop-portal-luminous"; + version = "0.1.8"; + + src = fetchFromGitHub { + owner = "waycrate"; + repo = "xdg-desktop-portal-luminous"; + tag = "v${finalAttrs.version}"; + hash = "sha256-7i6+arKWubziDmy07FocDDiJdOWAszhO7yOOI1iPfds="; + }; + + cargoDeps = rustPlatform.fetchCargoVendor { + inherit (finalAttrs) pname version src; + hash = "sha256-fatlvc+MoAJZGW/5alnDu1PQyK6mnE0aNQAhrMg7Hio="; + }; + + nativeBuildInputs = [ + pkg-config + meson + ninja + rustc + cargo + rustPlatform.cargoSetupHook + rustPlatform.bindgenHook + ]; + + buildInputs = [ + xdg-desktop-portal + slurp + cairo + pango + glib + pipewire + libxkbcommon + ]; + + 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 ]; + }; +})