···11-{ lib, stdenv, fetchurl, fetchpatch, libgcrypt, libnl, pkg-config, python3Packages, wireless-regdb }:
22-33-stdenv.mkDerivation rec {
44- pname = "crda";
55- version = "4.14";
66-77- src = fetchurl {
88- url = "https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-${version}.tar.gz";
99- sha256 = "sha256-Wo81u4snR09Gaw511FG6kXQz2KqxiJZ4pk2cTnKouMI=";
1010- };
1111-1212- patches = [
1313- # Fix python 3 build: except ImportError, e: SyntaxError: invalid syntax
1414- (fetchpatch {
1515- url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d234fddf451fab0f4fc412e2769f54e11f10d7d8/trunk/crda-4.14-python-3.patch";
1616- sha256 = "sha256-KEezEKrfizq9k4ZiE2mf3Nl4JiBayhXeVnFl7wYh28Y=";
1717- })
1818-1919- (fetchpatch {
2020- url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d48ec843222b0d74c85bce86fa6f087c7dfdf952/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch";
2121- sha256 = "sha256-j93oydi209f22OF8aXZ/NczuUOnlhkdSeYvy2WRRvm0=";
2222- })
2323- ];
2424-2525- strictDeps = true;
2626-2727- nativeBuildInputs = [
2828- pkg-config
2929- python3Packages.m2crypto # only used for a build time script
3030- ];
3131-3232- buildInputs = [
3333- libgcrypt
3434- libnl
3535- ];
3636-3737- postPatch = ''
3838- patchShebangs utils/
3939- substituteInPlace Makefile \
4040- --replace 'gzip' 'gzip -n' \
4141- --replace ldconfig true \
4242- --replace pkg-config $PKG_CONFIG
4343- sed -i crda.c \
4444- -e "/\/usr\/.*\/regulatory.bin/d" \
4545- -e "s|/lib/crda|${wireless-regdb}/lib/crda|g"
4646- '';
4747-4848- makeFlags = [
4949- "PREFIX=$(out)"
5050- "SBINDIR=$(out)/bin/"
5151- "UDEV_RULE_DIR=$(out)/lib/udev/rules.d/"
5252- "REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin"
5353- ];
5454-5555- buildFlags = [ "all_noverify" ];
5656- enableParallelBuilding = true;
5757-5858- doCheck = true;
5959- checkTarget = "verify";
6060-6161- meta = with lib; {
6262- description = "Linux wireless Central Regulatory Domain Agent";
6363- longDescription = ''
6464- CRDA acts as the udev helper for communication between the kernel and
6565- userspace for regulatory compliance. It relies on nl80211 for communication.
6666-6767- CRDA is intended to be run only through udev communication from the kernel.
6868- To use it under NixOS, add
6969-7070- services.udev.packages = [ pkgs.crda ];
7171-7272- to the system configuration.
7373- '';
7474- homepage = "https://wireless.wiki.kernel.org/en/developers/regulatory/crda";
7575- license = licenses.free; # "copyleft-next 0.3.0", as yet without a web site
7676- platforms = platforms.linux;
7777- };
7878-}
+1
pkgs/top-level/aliases.nix
···173173 concurrencykit = libck; # Added 2021-03
174174 connmanPackages = throw "'connmanPackages' was removed and their subpackages/attributes were promoted to top level."; # Added 2023-10-08
175175 convoy = throw "'convoy' has been removed from nixpkgs, as it was archived upstream"; # Added 2023-12-27
176176+ crda = throw "'crda' has been removed from nixpkgs, as it is needed only for kernels before 4.16"; # Added 2024-02-06
176177 cups-kyodialog3 = cups-kyodialog; # Added 2022-11-12
177178 cvs_fast_export = cvs-fast-export; # Added 2021-06-10
178179