Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
stdenv,
|
|
# Package dependencies
|
|
qt6,
|
|
libusb1,
|
|
protobuf,
|
|
asio,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hidviz";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hidviz";
|
|
repo = "hidviz";
|
|
rev = "v${version}";
|
|
hash = "sha256-ThDDQ3FN+cLCbdQCrC5zhL4dgg2zAbRWvtei7+qmQg8=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace libhidx/cmake_modules/Findasio.cmake --replace-fail '/usr/include/asio' '${lib.getDev asio}/include/asio'
|
|
substituteInPlace libhidx/libhidx/src/Connector.cc --replace-fail '/usr/local/libexec' "$out/libexec"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
qt6.qttools
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
qt6.qtwebengine
|
|
libusb1
|
|
protobuf
|
|
asio
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hidviz/hidviz";
|
|
description = "GUI application for in-depth analysis of USB HID class devices";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|