From e4659cb5e546ef56cfe5fc6ba8462e320a29c277 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 10 Oct 2024 11:27:40 +0200 Subject: [PATCH] pkgsStatic.gusb: fix build --- pkgs/development/libraries/gusb/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gusb/default.nix b/pkgs/development/libraries/gusb/default.nix index 3e75bdecaecd2..c49df7fd75fe9 100644 --- a/pkgs/development/libraries/gusb/default.nix +++ b/pkgs/development/libraries/gusb/default.nix @@ -5,6 +5,8 @@ , meson , ninja , pkg-config +, buildPackages +, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages , gobject-introspection , gi-docgen , python3 @@ -25,7 +27,8 @@ stdenv.mkDerivation rec { pname = "gusb"; version = "0.4.9"; - outputs = [ "bin" "out" "dev" "devdoc" ]; + outputs = [ "bin" "out" "dev" ] + ++ lib.optionals withIntrospection [ "devdoc" ]; src = fetchFromGitHub { owner = "hughsie"; @@ -51,6 +54,7 @@ stdenv.mkDerivation rec { meson ninja pkg-config + ] ++ lib.optionals withIntrospection [ gobject-introspection gi-docgen vala @@ -64,7 +68,10 @@ stdenv.mkDerivation rec { ]; mesonFlags = [ + (lib.mesonBool "docs" withIntrospection) + (lib.mesonBool "introspection" withIntrospection) (lib.mesonBool "tests" doCheck) + (lib.mesonBool "vapi" withIntrospection) (lib.mesonOption "usb_ids" "${hwdata}/share/hwdata/usb.ids") ];