linuxPackages.rtl88x2bu: init at 2020-05-19

This commit is contained in:
Benjamin Saunders 2020-03-07 19:03:14 -08:00 committed by Jon
parent 3f529586ca
commit 38f5fce48a
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, kernel, bc }:
stdenv.mkDerivation rec {
name = "rtl88x2bu-${kernel.version}-${version}";
version = "unstable-2020-05-19";
src = fetchFromGitHub {
owner = "cilynx";
repo = "rtl88x2BU";
rev = "0f159d7cd937a12b818121cb1f1c4910bd1adc72";
sha256 = "0flqnvzfdb4wsiiqv9vf5gfwd5fgpjvhs9zhqknnv1cmp8msgw6y";
};
hardeningDisable = [ "pic" ];
nativeBuildInputs = [ bc ];
buildInputs = kernel.moduleBuildDependencies;
prePatch = ''
substituteInPlace ./Makefile \
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \
--replace /sbin/depmod \# \
--replace '$(MODDESTDIR)' "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
preInstall = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
'';
meta = with stdenv.lib; {
description = "Realtek rtl88x2bu driver";
homepage = "https://github.com/cilynx/rtl88x2bu";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.ralith ];
};
}

View file

@ -17039,6 +17039,8 @@ in
rtl8821ce = callPackage ../os-specific/linux/rtl8821ce { };
rtl88x2bu = callPackage ../os-specific/linux/rtl88x2bu { };
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
openafs = callPackage ../servers/openafs/1.6/module.nix { };