summary refs log blame commit diff
path: root/pkgs/os-specific/linux/iw/default.nix
blob: 387792b863134dd3ec7519303b9d0f8e60d1b136 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                     
                         
               
                    

                  
                                                                                            
                                                                    

    

                                    
 
                                                



                                                                    
                                      



                                                       
{stdenv, fetchurl, libnl, pkgconfig}:

stdenv.mkDerivation rec {
  pname = "iw";
  version = "5.0.1";

  src = fetchurl {
    url = "https://www.kernel.org/pub/software/network/${pname}/${pname}-${version}.tar.xz";
    sha256 = "03awbfrr9i78vgwsa6z2c8g14mia9z8qzrvzxar2ad9299wylf0y";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libnl ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  meta = {
    description = "Tool to use nl80211";
    homepage = http://wireless.kernel.org/en/users/Documentation/iw;
    license = stdenv.lib.licenses.isc;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}