Merge pull request #55141 from hhm0/rtl8821ce
rtl8821ce: init at 5.2.5_1.26055.20180108
This commit is contained in:
commit
8568f68e61
37
pkgs/os-specific/linux/rtl8821ce/default.nix
Normal file
37
pkgs/os-specific/linux/rtl8821ce/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv, fetchFromGitHub, kernel, bc }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rtl8821ce-${kernel.version}-${version}";
|
||||
version = "5.2.5_1.26055.20180108";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tomaspinho";
|
||||
repo = "rtl8821ce";
|
||||
rev = "ab6154e150bbc7d12b0525d4cc1298ae196e45de";
|
||||
sha256 = "1my0hidqnv4s7hi5897m81pq0sjw05np0g27hlkg9fwb83b5kzsg";
|
||||
};
|
||||
|
||||
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 rtl8821ce driver";
|
||||
homepage = "https://github.com/tomaspinho/rtl8821ce";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.hhm ];
|
||||
};
|
||||
}
|
@ -14730,6 +14730,8 @@ in
|
||||
|
||||
rtl8821au = callPackage ../os-specific/linux/rtl8821au { };
|
||||
|
||||
rtl8821ce = callPackage ../os-specific/linux/rtl8821ce { };
|
||||
|
||||
rtlwifi_new = callPackage ../os-specific/linux/rtlwifi_new { };
|
||||
|
||||
openafs = callPackage ../servers/openafs/1.6/module.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user