1{ stdenv, lib, fetchFromGitHub, ncurses }:
2
3stdenv.mkDerivation rec {
4 pname = "ethq";
5 version = "0.7.0";
6
7 src = fetchFromGitHub {
8 owner = "isc-projects";
9 repo = "ethq";
10 rev = "refs/tags/v${builtins.replaceStrings ["."] ["_"] version}";
11 hash = "sha256-ye5ep9EM9Sq/NqNZHENPmFZefVBx1BGrPm3YEG1NcSc=";
12 };
13
14 buildInputs = [ ncurses ];
15
16 installPhase = ''
17 runHook preInstall
18
19 mkdir -p $out/bin
20 install -m0755 ethq $out/bin/ethq
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 description = "Ethernet NIC Queue stats viewer";
27 mainProgram = "ethq";
28 homepage = "https://github.com/isc-projects/ethq";
29 license = licenses.mpl20;
30 platforms = platforms.linux;
31 maintainers = [ ];
32 };
33}