Skip to content

Commit

Permalink
pkgsStatic.gusb: fix build (#347701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Oct 30, 2024
2 parents 4135d3f + e4659cb commit 838f2f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/gusb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
Expand All @@ -51,6 +54,7 @@ stdenv.mkDerivation rec {
meson
ninja
pkg-config
] ++ lib.optionals withIntrospection [
gobject-introspection
gi-docgen
vala
Expand All @@ -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")
];

Expand Down

0 comments on commit 838f2f7

Please sign in to comment.