2017-10-03 00:19:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libxml2, glib, pipewire, fuse }:
|
|
|
|
|
|
|
|
let
|
2018-10-14 00:06:21 +01:00
|
|
|
version = "1.0.3";
|
2017-10-03 00:19:20 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "xdg-desktop-portal-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flatpak";
|
|
|
|
repo = "xdg-desktop-portal";
|
|
|
|
rev = version;
|
2018-10-14 00:06:21 +01:00
|
|
|
sha256 = "113k5sr4l58rm8sgp4qbjrhyjg37c5ad54i58njsm98knb5r2ppv";
|
2017-10-03 00:19:20 +01:00
|
|
|
};
|
|
|
|
|
2018-02-13 01:09:51 +00:00
|
|
|
patches = [
|
|
|
|
./respect-path-env-var.patch
|
|
|
|
];
|
|
|
|
|
2017-10-03 00:19:20 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libxml2 ];
|
|
|
|
buildInputs = [ glib pipewire fuse ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-installed-tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|