2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libnl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iw";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "5.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.kernel.org/pub/software/network/${pname}/${pname}-${version}.tar.xz";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1d1dfynrzh52zdia1l23ajv4q5wixgffnc1gkz05qrxnn2n4p75m";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libnl ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool to use nl80211";
|
|
|
|
longDescription = ''
|
|
|
|
iw is a new nl80211 based CLI configuration utility for wireless devices.
|
|
|
|
It supports all new drivers that have been added to the kernel recently.
|
|
|
|
The old tool iwconfig, which uses Wireless Extensions interface, is
|
|
|
|
deprecated and it's strongly recommended to switch to iw and nl80211.
|
|
|
|
'';
|
|
|
|
homepage = "https://wireless.wiki.kernel.org/en/users/Documentation/iw";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric primeos ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|