@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub
2+, meson, ninja, pkgconfig, wayland-protocols
3+, pipewire, wayland, elogind, systemd, libdrm }:
4+
5+stdenv.mkDerivation rec {
6+ pname = "xdg-desktop-portal-wlr";
7+ version = "0.1.0";
8+
9+ src = fetchFromGitHub {
10+ owner = "emersion";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "12k92h9dmn1fyn8nzxk69cyv0gnb7g9gj7a66mw5dcl5zqnl07nc";
14+ };
15+
16+ nativeBuildInputs = [ meson ninja pkgconfig wayland-protocols ];
17+ buildInputs = [ pipewire wayland elogind systemd libdrm ];
18+
19+ meta = with stdenv.lib; {
20+ homepage = "https://github.com/emersion/xdg-desktop-portal-wlr";
21+ description = "xdg-desktop-portal backend for wlroots";
22+ maintainers = with maintainers; [ minijackson ];
23+ platforms = platforms.linux;
24+ license = licenses.mit;
25+ };
26+}