Merge pull request #303695 from merspieler/hidviz

hidviz: Init at 0.2
This commit is contained in:
Lily Foster 2024-04-13 08:24:15 -04:00 committed by GitHub
commit c15240aa32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 0 deletions

View file

@ -13973,6 +13973,10 @@
githubId = 56316606;
name = "Amneesh Singh";
};
nayala = {
name = "Nia";
matrix = "@fly:asra.gr";
};
nazarewk = {
name = "Krzysztof Nazarewski";
matrix = "@nazarewk:matrix.org";

View file

@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, cmake
, pkg-config
, stdenv
# Package dependencies
, qt6
, libusb1
, protobuf
, asio
}:
stdenv.mkDerivation rec {
pname = "hidviz";
version = "0.2";
src = fetchFromGitHub {
owner = "hidviz";
repo = "hidviz";
rev = "v${version}";
sha256 = "sha256-9crHFYVNNxJjwJojwqB8qdAGyr1Ieux9qC3m3rpIJw0=";
};
preConfigure = ''
substituteInPlace libhidx/cmake_modules/Findasio.cmake --replace-fail '/usr/include/asio' '${lib.getDev asio}/include/asio'
'';
nativeBuildInputs = [
cmake
pkg-config
qt6.qttools
qt6.wrapQtAppsHook
];
buildInputs = [
qt6.qtwebengine
libusb1
protobuf
asio
];
meta = with lib; {
homepage = "https://github.com/hidviz/hidviz";
description = "A GUI application for in-depth analysis of USB HID class devices.";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ nayala ];
};
}