lxi-tools: 1.21 -> 2.3

This commit is contained in:
Daniel Nilsson 2022-11-19 20:09:28 +01:00
parent 3836d8cac9
commit 8fa1580c14

View file

@ -1,22 +1,38 @@
{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
, liblxi, readline, lua
, 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
}:
stdenv.mkDerivation rec {
pname = "lxi-tools";
version = "1.21";
version = "2.3";
src = fetchFromGitHub {
owner = "lxi-tools";
repo = "lxi-tools";
rev = "v${version}";
sha256 = "0rkp6ywsw2zv7hpbr12kba79wkcwqin7xagxxhd968rbfkfdxlwc";
sha256 = "sha256-c53Jn/9xKsxQDsRWU2LKtNWs28AuG4t5OwYOAMxpcPA=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
nativeBuildInputs = [
meson ninja cmake pkg-config
wrapGAppsHook
];
buildInputs = [ liblxi readline lua ];
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";
meta = with lib; {
description = "Tool for communicating with LXI compatible instruments";