2015-01-14 13:36:45 +01:00
|
|
|
{stdenv, fetchurl
|
2013-05-10 19:17:36 +02:00
|
|
|
, automake, autoconf, libtool, which, gtkdoc, gettext, pkgconfig, gobjectIntrospection, libxslt
|
2017-10-03 03:15:55 +02:00
|
|
|
, glib, systemd, libusb1, vala_0_38
|
2013-05-10 19:17:36 +02:00
|
|
|
}:
|
2015-01-14 13:36:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gusb-${version}";
|
2017-10-03 03:15:55 +02:00
|
|
|
version = "0.2.11";
|
2013-05-10 19:17:36 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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";
|
|
|
|
sha256 = "1pppz17lw3khyz8by1dddxdqrv6qn4a23fpxs38c67db7x4l7ccw";
|
2013-05-10 19:17:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
2017-10-03 03:15:55 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig autoconf automake libtool which gtkdoc gettext
|
|
|
|
gobjectIntrospection libxslt vala_0_38 ];
|
|
|
|
buildInputs = [ systemd glib ];
|
2013-05-10 19:17:36 +02:00
|
|
|
|
2017-02-27 14:30:20 +01:00
|
|
|
propagatedBuildInputs = [ libusb1 ];
|
|
|
|
|
2013-05-10 19:17:36 +02:00
|
|
|
meta = {
|
|
|
|
description = "GLib libusb wrapper";
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://people.freedesktop.org/~hughsient/releases/;
|
2013-05-10 19:17:36 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|