nixpkgs/pkgs/by-name/hi/hidviz/package.nix
fly d3992ec28b hidviz: Init at 0.2
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-04-13 04:25:28 +02:00

49 lines
955 B
Nix

{ 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 ];
};
}