depot/third_party/nixpkgs/pkgs/tools/misc/ethtool/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

32 lines
664 B
Nix

{ lib
, stdenv
, fetchurl
, libmnl
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "ethtool";
version = "5.14";
src = fetchurl {
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-uxPbkZFcrNekkrZbZd8Hpn5Ll03b6vdiBbGUWiPSdoY=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libmnl
];
meta = with lib; {
description = "Utility for controlling network drivers and hardware";
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}