linuxPackages.rtl8821cu: init at 2020-05-16
This commit is contained in:
parent
2710fed815
commit
8d8129aec1
2 changed files with 39 additions and 0 deletions
37
pkgs/os-specific/linux/rtl8821cu/default.nix
Normal file
37
pkgs/os-specific/linux/rtl8821cu/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ stdenv, fetchFromGitHub, kernel, bc }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "rtl8821cu-${kernel.version}-${version}";
|
||||||
|
version = "unstable-2020-05-16";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "brektrou";
|
||||||
|
repo = "rtl8821cu";
|
||||||
|
rev = "5c510c9f14352fed4906a10921040b9e46b58346";
|
||||||
|
sha256 = "1n74h1m3l2dj35caswaghzcjwcv5qlv3gj6j1rqdddbyg5khl4ag";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 rtl8821cu driver";
|
||||||
|
homepage = "https://github.com/brektrou/rtl8821CU";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = [ maintainers.contrun ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -17607,6 +17607,8 @@ in
|
||||||
|
|
||||||
rtl88x2bu = callPackage ../os-specific/linux/rtl88x2bu { };
|
rtl88x2bu = callPackage ../os-specific/linux/rtl88x2bu { };
|
||||||
|
|
||||||
|
rtl8821cu = callPackage ../os-specific/linux/rtl8821cu { };
|
||||||
|
|
||||||
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
|
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
|
||||||
|
|
||||||
openafs = callPackage ../servers/openafs/1.6/module.nix { };
|
openafs = callPackage ../servers/openafs/1.6/module.nix { };
|
||||||
|
|
Loading…
Reference in a new issue