Merge pull request #205728 from NickCao/spice-gtk-cross

spice-gtk: fix cross compilation
This commit is contained in:
Guillaume Girol 2022-12-16 21:19:53 +00:00 committed by GitHub
commit cc61e004f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@
, libusb1
, lz4
, meson
, mesonEmulatorHook
, ninja
, openssl
, perl
@ -36,6 +37,7 @@
, usbredir
, vala
, wayland-protocols
, wayland-scanner
, zlib
, withPolkit ? stdenv.isLinux
}:
@ -82,6 +84,10 @@ stdenv.mkDerivation rec {
"# meson.add_install_script('../build-aux/setcap-or-suid',"
'';
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
docbook_xsl
gettext
@ -94,7 +100,10 @@ stdenv.mkDerivation rec {
python3
python3.pkgs.pyparsing
python3.pkgs.six
wayland-scanner
vala
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
mesonEmulatorHook
];
propagatedBuildInputs = [
@ -118,6 +127,7 @@ stdenv.mkDerivation rec {
pixman
spice-protocol
usbredir
vala
zlib
] ++ lib.optionals withPolkit [
polkit