From 4a701a51aa7f0affc43fb9187f08e436577d2704 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 2 Mar 2022 23:43:33 -0800 Subject: [PATCH] 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. --- pkgs/development/libraries/spice-gtk/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/spice-gtk/default.nix b/pkgs/development/libraries/spice-gtk/default.nix index 16cf654914d..db5db61c6e9 100644 --- a/pkgs/development/libraries/spice-gtk/default.nix +++ b/pkgs/development/libraries/spice-gtk/default.nix @@ -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; {