2019-02-03 22:02:25 +00:00
|
|
|
{ stdenv, fetchFromGitHub, kernel, bc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rtl8821ce-${kernel.version}-${version}";
|
2020-05-24 20:33:23 +01:00
|
|
|
version = "5.5.2_34066.20200325";
|
2019-02-03 22:02:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomaspinho";
|
|
|
|
repo = "rtl8821ce";
|
2020-07-29 07:29:26 +01:00
|
|
|
rev = "8d7edbe6a78fd79cfab85d599dad9dc34138abd1";
|
|
|
|
sha256 = "1hsf8lqjnkrkvk0gps8yb3lx72mvws6xbgkbdmgdkz7qdxmha8bp";
|
2019-02-03 22:02:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2019-02-05 00:35:44 +00:00
|
|
|
platforms = platforms.linux;
|
2020-08-11 14:55:23 +01:00
|
|
|
maintainers = with maintainers; [ hhm samuelgrf ];
|
2019-02-03 22:02:25 +00:00
|
|
|
};
|
|
|
|
}
|