nixpkgs/pkgs/development/libraries/xdg-desktop-portal/default.nix

84 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-02-07 23:03:28 +01:00
, fetchFromGitHub
, nixosTests
, substituteAll
, autoreconfHook
, pkg-config
2020-02-07 23:03:28 +01:00
, libxml2
, glib
2020-05-22 12:38:32 +02:00
, pipewire
2020-02-07 23:03:28 +01:00
, flatpak
, gsettings-desktop-schemas
, acl
, dbus
, fuse
, libportal
2020-02-07 23:03:28 +01:00
, geoclue2
, json-glib
, wrapGAppsHook
}:
2017-10-03 01:19:20 +02:00
stdenv.mkDerivation rec {
pname = "xdg-desktop-portal";
version = "1.8.1";
2017-10-03 01:19:20 +02:00
outputs = [ "out" "installedTests" ];
src = fetchFromGitHub {
owner = "flatpak";
repo = pname;
2017-10-03 01:19:20 +02:00
rev = version;
sha256 = "sha256-tuRKCBj9ELC7yFPs/Sut/EdO+L8nwW3S8NWU+XedAF8=";
2017-10-03 01:19:20 +02:00
};
patches = [
2020-02-07 23:03:28 +01:00
# Hardcode paths used by x-d-p itself.
2019-02-21 22:23:04 +01:00
(substituteAll {
src = ./fix-paths.patch;
inherit flatpak;
})
];
2020-02-07 23:03:28 +01:00
nativeBuildInputs = [
autoreconfHook
pkg-config
2020-02-07 23:03:28 +01:00
libxml2
wrapGAppsHook
];
buildInputs = [
glib
2020-05-22 12:38:32 +02:00
pipewire
2020-02-07 23:03:28 +01:00
flatpak
acl
dbus
geoclue2
fuse
libportal
2020-02-07 23:03:28 +01:00
gsettings-desktop-schemas
json-glib
];
2017-10-03 01:19:20 +02:00
configureFlags = [
"--enable-installed-tests"
];
makeFlags = [
2020-02-07 23:03:28 +01:00
"installed_testdir=${placeholder "installedTests"}/libexec/installed-tests/xdg-desktop-portal"
"installed_test_metadir=${placeholder "installedTests"}/share/installed-tests/xdg-desktop-portal"
2017-10-03 01:19:20 +02:00
];
passthru = {
tests = {
installedTests = nixosTests.installed-tests.xdg-desktop-portal;
};
};
meta = with lib; {
2017-10-03 01:19:20 +02:00
description = "Desktop integration portals for sandboxed apps";
license = licenses.lgpl21;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
};
}