summary refs log blame commit diff
path: root/pkgs/tools/misc/ethtool/default.nix
blob: 65797f65fe6d02b439136ce73b901152441fb7ac (plain) (tree)
1
2
3
4
5
6
7
8
9





            
 
                         
                    
                   

                  
                                                                                 
                                                                   

    






                       
 
                    
                                                                         
                                                                      
                                
                                
                                                 
    
 
{ lib
, stdenv
, fetchurl
, libmnl
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "ethtool";
  version = "5.15";

  src = fetchurl {
    url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
    sha256 = "sha256-aG/WEQOJ1JwqEg8Aw81d/kPeutqOAh5CcNdLvkUqEW0=";
  };

  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 ];
  };
}