2021-10-21 12:14:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
2021-12-18 02:52:35 +00:00
|
|
|
, granite
|
2021-10-21 12:14:34 +00:00
|
|
|
, gtk3
|
|
|
|
, libhandy
|
|
|
|
, systemd
|
|
|
|
, vte
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal-pantheon";
|
2022-01-27 02:09:26 +00:00
|
|
|
version = "1.1.0";
|
2021-10-21 12:14:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = "portals";
|
|
|
|
rev = version;
|
2022-01-27 02:09:26 +00:00
|
|
|
sha256 = "sha256-YICNOeNrpO2tJFyULjQEhZQCrrMyQau59EC7c5K9q40=";
|
2021-10-21 12:14:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2021-12-18 02:52:35 +00:00
|
|
|
granite
|
2021-10-21 12:14:34 +00:00
|
|
|
gtk3
|
|
|
|
libhandy
|
|
|
|
systemd
|
|
|
|
vte
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
2021-12-18 02:52:35 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2021-10-21 12:14:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backend implementation for xdg-desktop-portal for the Pantheon desktop environment";
|
|
|
|
homepage = "https://github.com/elementary/portals";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.pantheon.members;
|
|
|
|
};
|
|
|
|
}
|