mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pkgsStatic.gusb: fix build (#347701)
This commit is contained in:
commit
838f2f70e0
@ -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")
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user