2019-06-05 23:03:54 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, udev, darwin }:
|
2014-05-31 12:38:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-05-11 19:16:26 +00:00
|
|
|
name = "libserialport-0.1.1";
|
2014-05-31 12:38:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-05 19:42:46 +00:00
|
|
|
url = "https://sigrok.org/download/source/libserialport/${name}.tar.gz";
|
2016-05-11 19:16:26 +00:00
|
|
|
sha256 = "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja";
|
2014-05-31 12:38:56 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-06-05 23:03:54 +00:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isLinux udev
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.IOKit;
|
2014-05-31 12:38:56 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross-platform shared library for serial port access";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-31 12:38:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-06-05 23:03:54 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-05-31 12:38:56 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|