xdg-desktop-portal: Clean up
This commit is contained in:
parent
9ecb58bfcb
commit
a10d38d901
@ -1,4 +1,22 @@
|
|||||||
{ stdenv, fetchFromGitHub, nixosTests, substituteAll, autoreconfHook, pkgconfig, libxml2, glib, pipewire, fontconfig, flatpak, gsettings-desktop-schemas, acl, dbus, fuse, geoclue2, json-glib, wrapGAppsHook }:
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, nixosTests
|
||||||
|
, substituteAll
|
||||||
|
, autoreconfHook
|
||||||
|
, pkgconfig
|
||||||
|
, libxml2
|
||||||
|
, glib
|
||||||
|
, pipewire
|
||||||
|
, fontconfig
|
||||||
|
, flatpak
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, acl
|
||||||
|
, dbus
|
||||||
|
, fuse
|
||||||
|
, geoclue2
|
||||||
|
, json-glib
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xdg-desktop-portal";
|
pname = "xdg-desktop-portal";
|
||||||
@ -14,15 +32,36 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
# Allow loading portals from different path than prefix (since that is immutable).
|
||||||
|
# We pass XDG_DESKTOP_PORTAL_PATH environment variable to the systemd service to achieve that.
|
||||||
./respect-path-env-var.patch
|
./respect-path-env-var.patch
|
||||||
|
|
||||||
|
# Hardcode paths used by x-d-p itself.
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit flatpak;
|
inherit flatpak;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig libxml2 wrapGAppsHook ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ glib pipewire fontconfig flatpak acl dbus geoclue2 fuse gsettings-desktop-schemas json-glib ];
|
autoreconfHook
|
||||||
|
pkgconfig
|
||||||
|
libxml2
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
pipewire
|
||||||
|
fontconfig
|
||||||
|
flatpak
|
||||||
|
acl
|
||||||
|
dbus
|
||||||
|
geoclue2
|
||||||
|
fuse
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
json-glib
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true; # XXX: investigate!
|
doCheck = true; # XXX: investigate!
|
||||||
|
|
||||||
@ -31,8 +70,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"installed_testdir=$(installedTests)/libexec/installed-tests/xdg-desktop-portal"
|
"installed_testdir=${placeholder "installedTests"}/libexec/installed-tests/xdg-desktop-portal"
|
||||||
"installed_test_metadir=$(installedTests)/share/installed-tests/xdg-desktop-portal"
|
"installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/xdg-desktop-portal"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user