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

42 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, libxml2, glib, pipewire, fontconfig, flatpak, acl, dbus, fuse, wrapGAppsHook, gnome3 }:
2017-10-03 01:19:20 +02:00
stdenv.mkDerivation rec {
pname = "xdg-desktop-portal";
version = "1.2.0";
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 = "1gjyif4gly0mkdx6ir6wc4vhfh1raah9jq03q28i88hr7phjdy71";
2017-10-03 01:19:20 +02:00
};
patches = [
./respect-path-env-var.patch
];
nativeBuildInputs = [ autoreconfHook pkgconfig libxml2 wrapGAppsHook ];
buildInputs = [ glib pipewire fontconfig flatpak acl dbus fuse gnome3.gsettings-desktop-schemas ];
2017-10-03 01:19:20 +02:00
doCheck = true; # XXX: investigate!
2017-10-03 01:19:20 +02:00
configureFlags = [
"--enable-installed-tests"
"--disable-geoclue" # Requires 2.5.2, not released yet
2017-10-03 01:19:20 +02:00
];
makeFlags = [
"installed_testdir=$(installedTests)/libexec/installed-tests/xdg-desktop-portal"
"installed_test_metadir=$(installedTests)/share/installed-tests/xdg-desktop-portal"
];
meta = with stdenv.lib; {
description = "Desktop integration portals for sandboxed apps";
license = licenses.lgpl21;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
};
}