2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, gobject-introspection
|
2018-10-26 20:54:43 +02:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_44
|
|
|
|
, glib, systemd, libusb1, vala, hwdata
|
2013-05-10 19:17:36 +02:00
|
|
|
}:
|
2015-01-14 13:36:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gusb";
|
2020-02-06 05:51:39 +01:00
|
|
|
version = "0.3.3";
|
2018-10-26 20:54:43 +02:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
2013-05-10 19:17:36 +02:00
|
|
|
|
2015-01-14 13:36:45 +01:00
|
|
|
src = fetchurl {
|
2017-10-03 03:15:55 +02:00
|
|
|
url = "https://people.freedesktop.org/~hughsient/releases/libgusb-${version}.tar.xz";
|
2020-02-06 05:51:39 +01:00
|
|
|
sha256 = "14pbd0812151ga7jrpzi88fcrwkckx6m07ay84l7dzkxbdc44fgr";
|
2013-05-10 19:17:36 +02:00
|
|
|
};
|
|
|
|
|
2018-10-26 20:54:43 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig gettext
|
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_44
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection vala
|
2018-10-26 20:54:43 +02:00
|
|
|
];
|
|
|
|
buildInputs = [ systemd glib ];
|
2013-05-10 19:17:36 +02:00
|
|
|
|
2017-02-27 14:30:20 +01:00
|
|
|
propagatedBuildInputs = [ libusb1 ];
|
|
|
|
|
2018-10-26 20:54:43 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dusb_ids=${hwdata}/share/hwdata/usb.ids"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # tests try to access USB
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-05-10 19:17:36 +02:00
|
|
|
description = "GLib libusb wrapper";
|
2018-10-26 20:54:43 +02:00
|
|
|
homepage = https://github.com/hughsie/libgusb;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
|
|
|
platforms = platforms.unix;
|
2013-05-10 19:17:36 +02:00
|
|
|
};
|
|
|
|
}
|