1 { lib, stdenv, fetchFromGitHub
2 , meson, ninja, pkg-config, cmake
3 , libtirpc, rpcsvc-proto, avahi, libxml2
6 stdenv.mkDerivation (finalAttrs: {
10 src = fetchFromGitHub {
13 rev = "v${finalAttrs.version}";
14 hash = "sha256-mbrl/1IxJhnUhvgEpXBtPg5WXfWap6RbfSSOK1ZZcng=";
19 sed -e 1i'#include <string.h>' \
20 -e 1i'#include <stdlib.h>' \
24 nativeBuildInputs = [ meson ninja cmake pkg-config rpcsvc-proto ];
26 buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
34 description = "Library for communicating with LXI compatible instruments";
36 liblxi is an open source software library which offers a simple
37 API for communicating with LXI compatible instruments.
38 The API allows applications to easily discover instruments
39 on networks and communicate SCPI commands.
41 homepage = "https://lxi-tools.github.io/";
42 license = licenses.bsd3;
43 platforms = platforms.unix;
44 maintainers = [ maintainers.vq ];