From d3992ec28ba6dce0fc0e033e96ec985cb41a79d4 Mon Sep 17 00:00:00 2001 From: fly Date: Sat, 13 Apr 2024 04:25:28 +0200 Subject: [PATCH 1/2] hidviz: Init at 0.2 Signed-off-by: fly --- pkgs/by-name/hi/hidviz/package.nix | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/hi/hidviz/package.nix diff --git a/pkgs/by-name/hi/hidviz/package.nix b/pkgs/by-name/hi/hidviz/package.nix new file mode 100644 index 000000000000..0ee04d13161b --- /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 ]; + }; +} From dc646e04c4329e97e52416a54305c80d2281ca64 Mon Sep 17 00:00:00 2001 From: fly Date: Sat, 13 Apr 2024 04:26:08 +0200 Subject: [PATCH 2/2] maintainers: add nayala Signed-off-by: fly --- maintainers/maintainer-list.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0394f94dddd1..8e9dbd178627 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13967,6 +13967,10 @@ githubId = 56316606; name = "Amneesh Singh"; }; + nayala = { + name = "Nia"; + matrix = "@fly:asra.gr"; + }; nazarewk = { name = "Krzysztof Nazarewski"; matrix = "@nazarewk:matrix.org";