diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-13 19:10:53 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-13 19:10:53 +0200 |
commit | f3a1652b098bbe33e5ab8a827ff3778b3c2120b8 (patch) | |
tree | 243f5d1e82706ad3d727a26692bd1d53d9373776 /pkgs/by-name/hi/hidviz/package.nix | |
parent | 561b7b74f8e5783f29bb589482b3ed60ce2c1318 (diff) | |
parent | c0c2f2903f310dd5efb86f02b4b5f824183f5173 (diff) |
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/by-name/hi/hidviz/package.nix')
-rw-r--r-- | pkgs/by-name/hi/hidviz/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/hi/hidviz/package.nix b/pkgs/by-name/hi/hidviz/package.nix new file mode 100644 index 0000000000000..0ee04d13161ba --- /dev/null +++ b/pkgs/by-name/hi/hidviz/package.nix @@ -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 ]; + }; +} |