nixpkgs/pkgs/development/libraries/libserialport/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
741 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, udev, darwin }:
stdenv.mkDerivation rec {
2021-06-20 14:15:21 +00:00
pname = "libserialport";
version = "0.1.1";
src = fetchurl {
2021-06-20 14:15:21 +00:00
url = "https://sigrok.org/download/source/libserialport/${pname}-${version}.tar.gz";
2016-05-11 19:16:26 +00:00
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;
2019-06-05 23:03:54 +00:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
};
}