1{stdenv, fetchurl, libnl, pkgconfig}:
2
3stdenv.mkDerivation rec {
4 name = "iw-4.14";
5
6 src = fetchurl {
7 url = "https://www.kernel.org/pub/software/network/iw/${name}.tar.xz";
8 sha256 = "12ddd6vh6vs97135bnlyr0szv7hvpbnmfh48584frzab0z0725ph";
9 };
10
11 nativeBuildInputs = [ pkgconfig ];
12 buildInputs = [ libnl ];
13
14 makeFlags = [ "PREFIX=\${out}" ];
15
16 meta = {
17 description = "Tool to use nl80211";
18 homepage = http://wireless.kernel.org/en/users/Documentation/iw;
19 license = stdenv.lib.licenses.isc;
20 maintainers = with stdenv.lib.maintainers; [viric];
21 platforms = with stdenv.lib.platforms; linux;
22 };
23}