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";
|
2021-10-29 00:51:24 +00:00
|
|
|
version = "1.0.1";
|
2021-10-21 12:14:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = "portals";
|
|
|
|
rev = version;
|
2021-10-29 00:51:24 +00:00
|
|
|
sha256 = "sha256-8gBMjCMEzrFmKHhkXsgcIESC93EOT0ADkRUIJMmerjw=";
|
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;
|
|
|
|
};
|
|
|
|
}
|