depot/third_party/nixpkgs/pkgs/os-specific/linux/iw/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

30 lines
1 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, libnl }:
stdenv.mkDerivation rec {
pname = "iw";
version = "5.16";
src = fetchurl {
url = "https://www.kernel.org/pub/software/network/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-TETkJ2L5A/kJS6WlmJmMgAqXpir9b9MeweCnmeMIZZw=";
};
nativeBuildInputs = [ pkg-config ];
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 = lib.licenses.isc;
maintainers = with lib.maintainers; [ viric primeos ];
platforms = with lib.platforms; linux;
};
}