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 { stdenv.mkDerivation rec {
name = "libserialport-0.1.1"; name = "libserialport-0.1.1";
@ -9,14 +9,14 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkgconfig ]; 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; { meta = with stdenv.lib; {
description = "Cross-platform shared library for serial port access"; description = "Cross-platform shared library for serial port access";
homepage = https://sigrok.org/; homepage = https://sigrok.org/;
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
# macOS, Windows and Android is also supported (according to upstream). platforms = platforms.linux ++ platforms.darwin;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ]; maintainers = [ maintainers.bjornfor ];
}; };
} }