depot/third_party/nixpkgs/pkgs/development/libraries/libserialport/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

22 lines
713 B
Nix

{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ];
buildInputs = lib.optional stdenv.isLinux udev
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.IOKit;
meta = with 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 ];
};
}