2021-01-24 01:40:18 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2022-11-19 20:09:28 +01:00
|
|
|
, meson, ninja, cmake, pkg-config
|
|
|
|
, liblxi, readline, lua, bash-completion
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib, gtk4, gtksourceview5, libadwaita, json-glib
|
|
|
|
, desktop-file-utils, appstream-glib
|
|
|
|
, gsettings-desktop-schemas
|
2020-12-18 21:58:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lxi-tools";
|
2022-11-19 20:09:28 +01:00
|
|
|
version = "2.3";
|
2020-12-18 21:58:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxi-tools";
|
|
|
|
repo = "lxi-tools";
|
|
|
|
rev = "v${version}";
|
2022-11-19 20:09:28 +01:00
|
|
|
sha256 = "sha256-c53Jn/9xKsxQDsRWU2LKtNWs28AuG4t5OwYOAMxpcPA=";
|
2020-12-18 21:58:43 +01:00
|
|
|
};
|
|
|
|
|
2022-11-19 20:09:28 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja cmake pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-12-18 21:58:43 +01:00
|
|
|
|
2022-11-19 20:09:28 +01:00
|
|
|
buildInputs = [
|
|
|
|
liblxi readline lua bash-completion
|
|
|
|
glib gtk4 gtksourceview5 libadwaita json-glib
|
|
|
|
desktop-file-utils appstream-glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
postUnpack = "sed -i '/meson.add_install.*$/d' source/meson.build";
|
|
|
|
|
|
|
|
postInstall = "glib-compile-schemas $out/share/glib-2.0/schemas";
|
2020-12-18 21:58:43 +01:00
|
|
|
|
2021-01-24 01:40:18 +01:00
|
|
|
meta = with lib; {
|
2020-12-18 21:58:43 +01:00
|
|
|
description = "Tool for communicating with LXI compatible instruments";
|
|
|
|
longDescription = ''
|
|
|
|
lxi-tools is a collection of open source software tools
|
|
|
|
that enables control of LXI compatible instruments such
|
|
|
|
as modern oscilloscopes, power supplies,
|
|
|
|
spectrum analyzers etc.
|
|
|
|
'';
|
|
|
|
homepage = "https://lxi-tools.github.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.vq ];
|
|
|
|
};
|
|
|
|
}
|