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