nixpkgs/pkgs/tools/misc/ethtool/default.nix

33 lines
664 B
Nix
Raw Normal View History

2021-09-27 10:55:59 +02:00
{ lib
, stdenv
, fetchurl
, libmnl
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "ethtool";
2021-09-27 10:55:59 +02:00
version = "5.14";
src = fetchurl {
2020-01-11 07:16:39 +01:00
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
2021-09-27 10:55:59 +02:00
sha256 = "sha256-uxPbkZFcrNekkrZbZd8Hpn5Ll03b6vdiBbGUWiPSdoY=";
};
2021-09-27 10:55:59 +02:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libmnl
];
2021-08-19 00:47:33 +02:00
meta = with lib; {
description = "Utility for controlling network drivers and hardware";
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
2021-09-27 10:55:59 +02:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
2021-09-27 10:55:59 +02:00
maintainers = with maintainers; [ bjornfor ];
};
}