pkgsStatic.gusb: fix build (#347701)

This commit is contained in:
Artturin 2024-10-30 16:35:26 +02:00 committed by GitHub
commit 838f2f70e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")
];