2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, udev, darwin }:
|
2014-05-31 13:38:56 +01:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optional stdenv.isLinux udev
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.IOKit;
|
2014-05-31 13:38:56 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-05-31 13:38:56 +01:00
|
|
|
description = "Cross-platform shared library for serial port access";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sigrok.org/";
|
2014-05-31 13:38:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-06-06 00:03:54 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-05-31 13:38:56 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|