mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
48 lines
925 B
Nix
48 lines
925 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}";
|
|
hash = "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 = "GUI application for in-depth analysis of USB HID class devices";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|