at 23.05-pre 34 lines 995 B view raw
1{ lib, stdenv, fetchFromGitHub 2, meson, ninja, pkg-config, cmake 3, libtirpc, rpcsvc-proto, avahi, libxml2 4}: 5 6stdenv.mkDerivation rec { 7 pname = "liblxi"; 8 version = "1.18"; 9 10 src = fetchFromGitHub { 11 owner = "lxi-tools"; 12 repo = "liblxi"; 13 rev = "v${version}"; 14 sha256 = "sha256-2tZWIN58J6zNHG3dahNfg5eNiS8ykWFQyRSyikuzdjE="; 15 }; 16 17 nativeBuildInputs = [ meson ninja cmake pkg-config rpcsvc-proto ]; 18 19 buildInputs = [ libtirpc avahi libxml2 ]; 20 21 meta = with lib; { 22 description = "Library for communicating with LXI compatible instruments"; 23 longDescription = '' 24 liblxi is an open source software library which offers a simple 25 API for communicating with LXI compatible instruments. 26 The API allows applications to easily discover instruments 27 on networks and communicate SCPI commands. 28 ''; 29 homepage = "https://lxi-tools.github.io/"; 30 license = licenses.bsd3; 31 platforms = platforms.linux; 32 maintainers = [ maintainers.vq ]; 33 }; 34}