crda: init at 3.18
This commit is contained in:
parent
b88abaaf5e
commit
ee0fae473c
50
pkgs/os-specific/linux/crda/default.nix
Normal file
50
pkgs/os-specific/linux/crda/default.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ stdenv, fetchurl, libgcrypt, libnl, pkgconfig, pythonPackages, wireless-regdb }:
|
||||||
|
|
||||||
|
let version = "3.18"; in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "crda-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
sha256 = "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23";
|
||||||
|
url = "http://kernel.org/pub/software/network/crda/crda-${version}.tar.xz";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libgcrypt libnl ];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgconfig pythonPackages.m2crypto pythonPackages.python
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs utils/
|
||||||
|
substituteInPlace Makefile --replace ldconfig true
|
||||||
|
sed -i crda.c \
|
||||||
|
-e "/\/usr\/.*\/regulatory.bin/d" \
|
||||||
|
-e "s|/lib/crda|${wireless-regdb}/lib/crda|g"
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"DESTDIR=$(out)"
|
||||||
|
"PREFIX="
|
||||||
|
"REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildFlags = [ "all_noverify" ];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkTarget = "verify";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
inherit version;
|
||||||
|
description = "Linux wireless Central Regulatory Domain Agent";
|
||||||
|
longDescription = ''
|
||||||
|
CRDA acts as the udev helper for communication between the kernel and
|
||||||
|
userspace for regulatory compliance. It relies on nl80211 for communication.
|
||||||
|
CRDA is intended to be run only through udev communication from the kernel.
|
||||||
|
'';
|
||||||
|
homepage = http://drvbp1.linux-foundation.org/~mcgrof/rel-html/crda/;
|
||||||
|
license = licenses.free; # "copyleft-next 0.3.0", as yet without a web site
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
}
|
@ -9717,6 +9717,8 @@ let
|
|||||||
|
|
||||||
cramfsswap = callPackage ../os-specific/linux/cramfsswap { };
|
cramfsswap = callPackage ../os-specific/linux/cramfsswap { };
|
||||||
|
|
||||||
|
crda = callPackage ../os-specific/linux/crda { };
|
||||||
|
|
||||||
darwin = let
|
darwin = let
|
||||||
cmdline = callPackage ../os-specific/darwin/command-line-tools {};
|
cmdline = callPackage ../os-specific/darwin/command-line-tools {};
|
||||||
apple-source-releases = callPackage ../os-specific/darwin/apple-source-releases { };
|
apple-source-releases = callPackage ../os-specific/darwin/apple-source-releases { };
|
||||||
|
Loading…
Reference in New Issue
Block a user