2023-07-15 17:15:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-07-15 17:15:38 +00:00
|
|
|
, cinnamon
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
2024-06-20 14:57:18 +00:00
|
|
|
, gtk3
|
2023-07-15 17:15:38 +00:00
|
|
|
, mate
|
|
|
|
, xdg-desktop-portal
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal-xapp";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.0.7";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "xdg-desktop-portal-xapp";
|
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-1Q00aEWl/mk37NcBJPgg443V1IXmNaJcSlilzvAJ1QQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cinnamon.cinnamon-desktop # org.cinnamon.desktop.background
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas # org.gnome.system.location
|
2024-06-20 14:57:18 +00:00
|
|
|
gtk3
|
2023-07-15 17:15:38 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|