Skip to content

Commit

Permalink
pkgsStatic.gusb: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssais committed Oct 10, 2024
1 parent 2792ebe commit e4659cb
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 e4659cb

Please sign in to comment.