at 24.05-pre 32 lines 740 B view raw
1{ stdenv, lib, fetchFromGitHub, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "ethq"; 5 version = "0.6.2"; 6 7 src = fetchFromGitHub { 8 owner = "isc-projects"; 9 repo = "ethq"; 10 rev = "refs/tags/v${builtins.replaceStrings ["."] ["_"] version}"; 11 hash = "sha256-luvvNdH4kERAMy242kLCqlnGmfPjSjvoHa6J2J7BFi4="; 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 homepage = "https://github.com/isc-projects/ethq"; 28 license = licenses.mpl20; 29 platforms = platforms.linux; 30 maintainers = with maintainers; [ delroth ]; 31 }; 32}