diff --git a/pkgs/development/libraries/xdg-desktop-portal-xapp/default.nix b/pkgs/development/libraries/xdg-desktop-portal-xapp/default.nix new file mode 100644 index 000000000000..80d409c080cb --- /dev/null +++ b/pkgs/development/libraries/xdg-desktop-portal-xapp/default.nix @@ -0,0 +1,61 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, pkg-config +, python3 +, wrapGAppsHook +, cinnamon +, glib +, gsettings-desktop-schemas +, gtk3 +, mate +, xdg-desktop-portal +}: + +stdenv.mkDerivation rec { + pname = "xdg-desktop-portal-xapp"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "linuxmint"; + repo = "xdg-desktop-portal-xapp"; + rev = version; + hash = "sha256-oXV4u/w4MWhKHf5vNbUNcyEJpKVFWcyEs1HEqo6eCyU="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + python3 + wrapGAppsHook + ]; + + buildInputs = [ + cinnamon.cinnamon-desktop # org.cinnamon.desktop.background + glib + gsettings-desktop-schemas # org.gnome.system.location + gtk3 + mate.mate-desktop # org.mate.background + xdg-desktop-portal + ]; + + mesonFlags = [ + "-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user" + ]; + + postPatch = '' + chmod +x data/meson_install_schemas.py + patchShebangs data/meson_install_schemas.py + ''; + + meta = with lib; { + description = "Backend implementation for xdg-desktop-portal for Cinnamon, MATE, Xfce"; + homepage = "https://github.com/linuxmint/xdg-desktop-portal-xapp"; + maintainers = teams.cinnamon.members; + platforms = platforms.linux; + license = licenses.lgpl21Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a4844c78b3e4..4f5110db2c1b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35406,6 +35406,8 @@ with pkgs; xdg-desktop-portal-wlr = callPackage ../development/libraries/xdg-desktop-portal-wlr { }; + xdg-desktop-portal-xapp = callPackage ../development/libraries/xdg-desktop-portal-xapp { }; + xdg-user-dirs = callPackage ../tools/X11/xdg-user-dirs { }; xdg-utils = callPackage ../tools/X11/xdg-utils {