2019-11-07 13:38:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, nixosTests, substituteAll, autoreconfHook, pkgconfig, libxml2, glib, pipewire, fontconfig, flatpak, gsettings-desktop-schemas, acl, dbus, fuse, geoclue2, json-glib, wrapGAppsHook }:
|
2017-10-03 00:19:20 +01:00
|
|
|
|
2018-12-24 11:33:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal";
|
2019-07-22 21:01:44 +01:00
|
|
|
version = "1.4.2";
|
2017-10-03 00:19:20 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flatpak";
|
2018-12-24 11:33:39 +00:00
|
|
|
repo = pname;
|
2017-10-03 00:19:20 +01:00
|
|
|
rev = version;
|
2019-07-22 21:01:44 +01:00
|
|
|
sha256 = "1rs3kmpczkr6nm08kb9njnl7n3rmhh0ral0xav6f0y70pyh8whx6";
|
2017-10-03 00:19:20 +01:00
|
|
|
};
|
|
|
|
|
2018-02-13 01:09:51 +00:00
|
|
|
patches = [
|
|
|
|
./respect-path-env-var.patch
|
2019-02-21 21:23:04 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit flatpak;
|
|
|
|
})
|
2018-02-13 01:09:51 +00:00
|
|
|
];
|
|
|
|
|
2018-12-24 11:33:39 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libxml2 wrapGAppsHook ];
|
2019-07-22 21:01:44 +01:00
|
|
|
buildInputs = [ glib pipewire fontconfig flatpak acl dbus geoclue2 fuse gsettings-desktop-schemas json-glib ];
|
2017-10-03 00:19:20 +01:00
|
|
|
|
2018-12-24 11:33:39 +00:00
|
|
|
doCheck = true; # XXX: investigate!
|
2017-10-03 00:19:20 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-installed-tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"installed_testdir=$(installedTests)/libexec/installed-tests/xdg-desktop-portal"
|
|
|
|
"installed_test_metadir=$(installedTests)/share/installed-tests/xdg-desktop-portal"
|
|
|
|
];
|
|
|
|
|
2019-11-07 13:38:54 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
installedTests = nixosTests.installed-tests.xdg-desktop-portal;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-10-03 00:19:20 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Desktop integration portals for sandboxed apps";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|