3
0
Fork 0
forked from mirrors/nixpkgs

libserialport: enable for darwin

This commit is contained in:
Robert Scott 2019-06-06 00:03:54 +01:00 committed by Bjørn Forsman
parent d22cbb40f5
commit 2c11bbd140

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, udev }:
{ stdenv, fetchurl, pkgconfig, udev, darwin }:
stdenv.mkDerivation rec {
name = "libserialport-0.1.1";
@ -9,14 +9,14 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ udev ];
buildInputs = stdenv.lib.optional stdenv.isLinux udev
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.IOKit;
meta = with stdenv.lib; {
description = "Cross-platform shared library for serial port access";
homepage = https://sigrok.org/;
license = licenses.gpl3Plus;
# macOS, Windows and Android is also supported (according to upstream).
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
};
}