nixpkgs/pkgs/os-specific/linux/iw/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
1.0 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, libnl }:
stdenv.mkDerivation rec {
pname = "iw";
version = "5.19";
src = fetchurl {
url = "https://www.kernel.org/pub/software/network/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-8We76UfdU7uevAwdzvXbatc6wdYITyxvk3bFw2DMTU4=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libnl ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = {
description = "Tool to use nl80211";
mainProgram = "iw";
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;
};
}