depot/third_party/nixpkgs/pkgs/development/libraries/libserialport/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

23 lines
767 B
Nix

{ lib, stdenv, fetchurl, pkg-config, udev, darwin }:
stdenv.mkDerivation rec {
pname = "libserialport";
version = "0.1.1";
src = fetchurl {
url = "https://sigrok.org/download/source/libserialport/${pname}-${version}.tar.gz";
sha256 = "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev
++ lib.optional stdenv.hostPlatform.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 ];
};
}