59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
wrapGAppsNoGuiHook,
|
|
cinnamon-desktop,
|
|
glib,
|
|
gsettings-desktop-schemas,
|
|
mate,
|
|
xdg-desktop-portal,
|
|
xapp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xdg-desktop-portal-xapp";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "xdg-desktop-portal-xapp";
|
|
rev = version;
|
|
hash = "sha256-9v0faB5HhUUPXOWDDyTUPaPwzMjhqdiAyuv9kM4mm2Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsNoGuiHook
|
|
];
|
|
|
|
buildInputs = [
|
|
cinnamon-desktop # org.cinnamon.desktop.background
|
|
glib
|
|
gsettings-desktop-schemas # org.gnome.system.location
|
|
mate.mate-desktop # org.mate.background
|
|
xdg-desktop-portal
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
|
];
|
|
|
|
preFixup = ''
|
|
# For xfce4-set-wallpaper
|
|
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ xapp ]}")
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|