depot/third_party/nixpkgs/pkgs/os-specific/linux/ethq/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
758 B
Nix

{ stdenv, lib, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
pname = "ethq";
version = "0.7.0";
src = fetchFromGitHub {
owner = "isc-projects";
repo = "ethq";
rev = "refs/tags/v${builtins.replaceStrings ["."] ["_"] version}";
hash = "sha256-ye5ep9EM9Sq/NqNZHENPmFZefVBx1BGrPm3YEG1NcSc=";
};
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";
mainProgram = "ethq";
homepage = "https://github.com/isc-projects/ethq";
license = licenses.mpl20;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}