From 348d8de2eb3eda4eeb66e4b4d35bd65bbe1cceb9 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 16 Apr 2023 07:21:02 +0200 Subject: [PATCH] ethq: init at 0.6.2 --- pkgs/os-specific/linux/ethq/default.nix | 32 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/os-specific/linux/ethq/default.nix diff --git a/pkgs/os-specific/linux/ethq/default.nix b/pkgs/os-specific/linux/ethq/default.nix new file mode 100644 index 000000000000..f966e285471e --- /dev/null +++ b/pkgs/os-specific/linux/ethq/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchFromGitHub, ncurses }: + +stdenv.mkDerivation rec { + pname = "ethq"; + version = "0.6.2"; + + src = fetchFromGitHub { + owner = "isc-projects"; + repo = "ethq"; + rev = "refs/tags/v${builtins.replaceStrings ["."] ["_"] version}"; + hash = "sha256-luvvNdH4kERAMy242kLCqlnGmfPjSjvoHa6J2J7BFi4="; + }; + + 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"; + homepage = "https://github.com/isc-projects/ethq"; + license = licenses.mpl20; + platforms = platforms.linux; + maintainers = with maintainers; [ delroth ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2bdf241abdc7..58664d331a83 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1503,6 +1503,8 @@ with pkgs; elkhound = callPackage ../development/tools/elkhound { }; + ethq = callPackage ../os-specific/linux/ethq { }; + weidu = callPackage ../tools/games/weidu { }; weylus = callPackage ../applications/graphics/weylus {