crda: 3.18 -> 4.14

Artturin 48a4db63 015a305a

+18 -18
+18 -18
pkgs/os-specific/linux/crda/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "crda"; 5 - version = "3.18"; 6 7 src = fetchurl { 8 - sha256 = "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"; 9 - url = "http://kernel.org/pub/software/network/crda/crda-${version}.tar.xz"; 10 }; 11 12 patches = [ 13 - # Switch to Python 3 14 - # https://lore.kernel.org/linux-wireless/1437542484-23409-1-git-send-email-ahmed.taahir@gmail.com/ 15 (fetchpatch { 16 - url = "https://lore.kernel.org/linux-wireless/1437542484-23409-2-git-send-email-ahmed.taahir@gmail.com/raw"; 17 - sha256 = "0s2n340cgaasvg1k8g9v8xjrbh4y2mcgrhdmv97ja2fs8xjcjbf1"; 18 }) 19 (fetchpatch { 20 - url = "https://lore.kernel.org/linux-wireless/1437542484-23409-3-git-send-email-ahmed.taahir@gmail.com/raw"; 21 - sha256 = "01dlfw7kqhyx025jxq2l75950b181p9r7i9zkflcwvbzzdmx59md"; 22 }) 23 ]; 24 25 - buildInputs = [ libgcrypt libnl ]; 26 nativeBuildInputs = [ 27 pkg-config 28 - python3Packages.pycrypto 29 ]; 30 31 postPatch = '' 32 patchShebangs utils/ 33 substituteInPlace Makefile \ 34 --replace ldconfig true \ 35 --replace pkg-config $PKG_CONFIG 36 sed -i crda.c \ ··· 45 "REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin" 46 ]; 47 48 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-const-variable"; 49 - 50 buildFlags = [ "all_noverify" ]; 51 enableParallelBuilding = true; 52 53 doCheck = true; 54 checkTarget = "verify"; 55 - 56 - postInstall = '' 57 - # The patch installs build header 58 - rm $out/include/reglib/keys-gcrypt.h 59 - ''; 60 61 meta = with lib; { 62 description = "Linux wireless Central Regulatory Domain Agent";
··· 2 3 stdenv.mkDerivation rec { 4 pname = "crda"; 5 + version = "4.14"; 6 7 src = fetchurl { 8 + url = "https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-${version}.tar.gz"; 9 + sha256 = "sha256-Wo81u4snR09Gaw511FG6kXQz2KqxiJZ4pk2cTnKouMI="; 10 }; 11 12 patches = [ 13 + # Fix python 3 build: except ImportError, e: SyntaxError: invalid syntax 14 (fetchpatch { 15 + url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d234fddf451fab0f4fc412e2769f54e11f10d7d8/trunk/crda-4.14-python-3.patch"; 16 + sha256 = "sha256-KEezEKrfizq9k4ZiE2mf3Nl4JiBayhXeVnFl7wYh28Y="; 17 }) 18 + 19 (fetchpatch { 20 + url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d48ec843222b0d74c85bce86fa6f087c7dfdf952/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch"; 21 + sha256 = "sha256-j93oydi209f22OF8aXZ/NczuUOnlhkdSeYvy2WRRvm0="; 22 }) 23 ]; 24 25 + strictDeps = true; 26 + 27 nativeBuildInputs = [ 28 pkg-config 29 + python3Packages.m2crypto # only used for a build time script 30 + ]; 31 + 32 + buildInputs = [ 33 + libgcrypt 34 + libnl 35 ]; 36 37 postPatch = '' 38 patchShebangs utils/ 39 substituteInPlace Makefile \ 40 + --replace 'gzip' 'gzip -n' \ 41 --replace ldconfig true \ 42 --replace pkg-config $PKG_CONFIG 43 sed -i crda.c \ ··· 52 "REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin" 53 ]; 54 55 buildFlags = [ "all_noverify" ]; 56 enableParallelBuilding = true; 57 58 doCheck = true; 59 checkTarget = "verify"; 60 61 meta = with lib; { 62 description = "Linux wireless Central Regulatory Domain Agent";