1 { lib, stdenv, fetchurl, meson, ninja, pkg-config, gettext, gobject-introspection
2 , gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_44, python3
3 , glib, systemd, libusb1, vala, hwdata
7 pythonEnv = python3.withPackages(ps: with ps; [
11 stdenv.mkDerivation rec {
15 outputs = [ "bin" "out" "dev" "devdoc" ];
18 url = "https://people.freedesktop.org/~hughsient/releases/libgusb-${version}.tar.xz";
19 sha256 = "1pv5ivbwxb9anq2j34i68r8fgs8nwsi4hmss7h9v1i3wk7300ajv";
23 meson ninja pkg-config gettext pythonEnv
24 gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_44
25 gobject-introspection vala
27 buildInputs = [ systemd glib ];
29 propagatedBuildInputs = [ libusb1 ];
32 "-Dusb_ids=${hwdata}/share/hwdata/usb.ids"
35 doCheck = false; # tests try to access USB
38 description = "GLib libusb wrapper";
39 homepage = "https://github.com/hughsie/libgusb";
40 license = licenses.lgpl21;
41 maintainers = [ maintainers.marcweber ];
42 platforms = platforms.unix;