2023-04-29 16:46:19 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ethq";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.6.3";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "isc-projects";
|
|
|
|
repo = "ethq";
|
|
|
|
rev = "refs/tags/v${builtins.replaceStrings ["."] ["_"] version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-dr37KiSnP0S0OjQof242EcbH+y4pCCzu6R9D6fXR9qc=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m0755 ethq $out/bin/ethq
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ethernet NIC Queue stats viewer";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ethq";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/isc-projects/ethq";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.linux;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|