depot/third_party/nixpkgs/pkgs/development/libraries/xdg-desktop-portal-xapp/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

54 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
, wrapGAppsHook3
, cinnamon
, glib
, gsettings-desktop-schemas
, gtk3
, mate
, xdg-desktop-portal
}:
stdenv.mkDerivation rec {
pname = "xdg-desktop-portal-xapp";
version = "1.0.6";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "xdg-desktop-portal-xapp";
rev = version;
hash = "sha256-ujfXZfBXr3T4e8+bIfkvdvBnEQfW7oPByaiXg/SBwJY=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook3
];
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"
];
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;
};
}