diff options
author | Robert Scott <code@humanleg.org.uk> | 2019-06-06 00:03:54 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-06-07 10:05:59 +0200 |
commit | 2c11bbd14003924e1d1ecb695e5e5bc39f5fa4b9 (patch) | |
tree | b3cb5a9b775a847ffb74219220f7f96cc92b0d02 /pkgs/development/libraries/libserialport | |
parent | d22cbb40f5b34ea31f9c8ff0d82ef024178f9219 (diff) |
libserialport: enable for darwin
Diffstat (limited to 'pkgs/development/libraries/libserialport')
-rw-r--r-- | pkgs/development/libraries/libserialport/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libserialport/default.nix b/pkgs/development/libraries/libserialport/default.nix index 90f0afa5796ce..2c34c1d8b7bfe 100644 --- a/pkgs/development/libraries/libserialport/default.nix +++ b/pkgs/development/libraries/libserialport/default.nix @@ -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 ]; }; } |