depot/third_party/nixpkgs/pkgs/development/libraries/libserialport/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

22 lines
727 B
Nix

{ stdenv, fetchurl, pkgconfig, udev, darwin }:
stdenv.mkDerivation rec {
name = "libserialport-0.1.1";
src = fetchurl {
url = "https://sigrok.org/download/source/libserialport/${name}.tar.gz";
sha256 = "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja";
};
nativeBuildInputs = [ pkgconfig ];
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;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
};
}