2021-09-27 10:55:59 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libmnl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2009-09-22 10:37:41 +02:00
|
|
|
|
2013-07-11 22:03:49 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ethtool";
|
2021-09-27 10:55:59 +02:00
|
|
|
version = "5.14";
|
2009-09-22 10:37:41 +02:00
|
|
|
|
|
|
|
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=";
|
2009-09-22 10:37:41 +02:00
|
|
|
};
|
|
|
|
|
2021-09-27 10:55:59 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libmnl
|
|
|
|
];
|
2021-08-19 00:47:33 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-07-11 22:03:49 +02:00
|
|
|
description = "Utility for controlling network drivers and hardware";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
|
2021-09-27 10:55:59 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2013-07-11 22:03:49 +02:00
|
|
|
platforms = platforms.linux;
|
2021-09-27 10:55:59 +02:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2013-07-11 22:03:49 +02:00
|
|
|
};
|
2009-09-22 10:37:41 +02:00
|
|
|
}
|