Permalink
Browse files

Merge pull request #55141 from hhm0/rtl8821ce

rtl8821ce: init at 5.2.5_1.26055.20180108
  • Loading branch information...
samueldr committed Feb 12, 2019
2 parents adb837e + f2f1180 commit 8568f68e612d203c54c14f39f38350d0043364b6
Showing with 39 additions and 0 deletions.
  1. +37 −0 pkgs/os-specific/linux/rtl8821ce/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
@@ -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 { };

0 comments on commit 8568f68

Please sign in to comment.