2014-05-31 13:38:56 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, udev }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-11 20:16:26 +01:00
|
|
|
name = "libserialport-0.1.1";
|
2014-05-31 13:38:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-05 19:42:46 +00:00
|
|
|
url = "https://sigrok.org/download/source/libserialport/${name}.tar.gz";
|
2016-05-11 20:16:26 +01:00
|
|
|
sha256 = "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja";
|
2014-05-31 13:38:56 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ udev ];
|
2014-05-31 13:38:56 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross-platform shared library for serial port access";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://sigrok.org/;
|
2014-05-31 13:38:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2017-08-06 23:05:18 +01:00
|
|
|
# macOS, Windows and Android is also supported (according to upstream).
|
2014-05-31 13:38:56 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|