spice-gtk: fix build for withPolkit==false case

The spice-gtk/default.nix expression provides an option, withPolkit,
to decide whether or not the library should be compiled with support
for polkit.  Currently setting that argument to false results in a
build failure:

  Run-time dependency polkit-gobject-1 found: NO (tried pkgconfig)
  meson.build:207:0: ERROR: Dependency "polkit-gobject-1" not found, tried pkgconfig

It appears that at some point spice-gtk began requiring the meson flag
-Dpolkit=disabled in this case.  This commit adds that flag when
!withPolkit.
This commit is contained in:
Adam Joseph 2022-03-02 23:43:33 -08:00
parent ea27b2243b
commit 4a701a51aa

View file

@ -124,6 +124,8 @@ stdenv.mkDerivation rec {
mesonFlags = [
"-Dusb-acl-helper-dir=${placeholder "out"}/bin"
"-Dusb-ids-path=${hwdata}/share/hwdata/usb.ids"
] ++ lib.optionals (!withPolkit) [
"-Dpolkit=disabled"
];
meta = with lib; {