2021-09-27 09:55:59 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libmnl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2009-09-22 09:37:41 +01:00
|
|
|
|
2013-07-11 21:03:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ethtool";
|
2021-11-10 22:51:55 +00:00
|
|
|
version = "5.15";
|
2009-09-22 09:37:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-01-11 06:16:39 +00:00
|
|
|
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
|
2021-11-10 22:51:55 +00:00
|
|
|
sha256 = "sha256-aG/WEQOJ1JwqEg8Aw81d/kPeutqOAh5CcNdLvkUqEW0=";
|
2009-09-22 09:37:41 +01:00
|
|
|
};
|
|
|
|
|
2021-09-27 09:55:59 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libmnl
|
|
|
|
];
|
2021-08-18 23:47:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-07-11 21:03:49 +01:00
|
|
|
description = "Utility for controlling network drivers and hardware";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
|
2021-09-27 09:55:59 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2013-07-11 21:03:49 +01:00
|
|
|
platforms = platforms.linux;
|
2021-09-27 09:55:59 +01:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2013-07-11 21:03:49 +01:00
|
|
|
};
|
2009-09-22 09:37:41 +01:00
|
|
|
}
|