bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
32 lines
664 B
Nix
32 lines
664 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, libmnl
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ethtool";
|
|
version = "5.16";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-qi/vGTbdShF1XfoL25Pw7FvqRSCNJ8l1S8Or4apCwcs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|